티스토리 뷰

ElasticSearch

ElasticSearch Query - Aggregation

따강아지 2023. 9. 2. 01:14

Elasticsearch는 집계를 세 가지 범주로 구성합니다.

  • 메트릭 집계 : 필드의 최소/최대/합계/평균/중간값 같은 통계 결과
  • 버킷 집계 :  특정 기준에 맞춰서 도큐먼트를 그룹핑화하여 필드 값, 범위, 또는 다른 기준 통계 결과 
  • 파이프라인 집계: 이전 집계로 만들어진 결과를 입력으로 삼아 다시 집계

참고 : Aggregations | Elasticsearch Guide [8.7] | Elastic

 

Aggregations | Elasticsearch Guide [8.7] | Elastic

An aggregation summarizes your data as metrics, statistics, or other analytics. Aggregations help you answer questions like: What’s the average load time for my website? Who are my most valuable customers based on transaction volume? What would be consid

www.elastic.co

Bucket aggregations | Elasticsearch Guide [8.7] | Elastic

 

Bucket aggregations | Elasticsearch Guide [8.7] | Elastic

Bucket aggregations don’t calculate metrics over fields like the metrics aggregations do, but instead, they create buckets of documents. Each bucket is associated with a criterion (depending on the aggregation type) which determines whether or not a docu

www.elastic.co

Metrics aggregations | Elasticsearch Guide [8.7] | Elastic

 

Metrics aggregations | Elasticsearch Guide [8.7] | Elastic

The aggregations in this family compute metrics based on values extracted in one way or another from the documents that are being aggregated. The values are typically extracted from the fields of the document (using the field data), but can also be generat

www.elastic.co

Pipeline aggregations | Elasticsearch Guide [8.7] | Elastic

 

Pipeline aggregations | Elasticsearch Guide [8.7] | Elastic

Because pipeline aggregations only add to the output, when chaining pipeline aggregations the output of each pipeline aggregation will be included in the final output.

www.elastic.co

 

 

'ElasticSearch' 카테고리의 다른 글

ElasticSearch Query-DSL Compound queries  (0) 2023.08.30
ElasticSearch Query DSL - match, term  (0) 2023.08.30
검색 API  (0) 2023.08.29
Elasticsearch 문서 색인 / 조회  (0) 2023.08.29
Elasticsearch 연동  (0) 2023.08.15