2.X/4. Aggregations

4-01-2. Metrics

drscg 2017. 9. 24. 11:35

Buckets allow us to partition documents into useful subsets, but ultimately what we want is some kind of metric calculated on those documents in each bucket. Bucketing is the means to an end: it provides a way to group documents in a way that you can calculate interesting metrics.

bucket은 document를 유용한 부분집합으로 분류한다. 그러나, 궁극적인 목표는, 각 bucket에 있는 해당 document에서 계산된, 어떤 종류의 metric이다. bucket으로 분류하는 것은 어떤 목적을 위한 수단이다. 관심 있는 metric을 계산할 수 있는 방법으로, document를 그룹화하는 방법을 제공한다.

Most metrics are simple mathematical operations (for example, min, mean, max, and sum) that are calculated using the document values. In practical terms, metrics allow you to calculate quantities such as the average salary, or the maximum sale price, or the 95th percentile for query latency.

대부분의 metric 은, document의 값을 사용하여 계산되는, 단순한 수학적인 연산(min, mean, max, sum 등)이다. 실용적인 측면에서, metric은 평균 급여, 최대 판매 가격, query 대기 시간의 95% 같은 수량을 계산할 수 있다.

'2.X > 4. Aggregations' 카테고리의 다른 글

4-01. High-Level Concepts  (0) 2017.09.24
4-01-1. Buckets  (0) 2017.09.24
4-01-3. Combining the Two  (0) 2017.09.24
4-02. Aggregation Test-Drive  (0) 2017.09.24
4-02-1. Adding a Metric to the Mix  (0) 2017.09.24