-
elasticsearch 에서 filter 적용 후 aggregation 과 global aggregationelasticsearch 2021. 6. 4. 00:33
filter 적용 후 aggregation 하기
GET summary-20210705/_search { "size": 0, "query": { "bool": { "filter": [ { "range": { ... } }, { "term": { ... } } ] } }, "aggs": { "normalExactTop1MatchAvg": { "avg": { "field": "normal.exactTop1Match" } }, "normalRecall3at10Avg": { "avg": { "field": "normal.recall3at10" } } } }
전체 데이터를 single bucket 으로 보고 aggregation 하기
GET my-index/_search { "size": 0, "aggs": { "all": { "global": {}, "aggs": { ... } } } }
'elasticsearch' 카테고리의 다른 글
Rest API 로 특정 색인의 특정 항목만 보기 (0) 2021.10.24 List 구조 텀 분석하기와 tokenizer 설정하기 (0) 2021.07.06 elasticsearch 7 에서 total count 확인하기 (1) 2021.06.04