본문 바로가기

IT/Elasticsearch

[Elasticsearch] Elasticsearch In Action - 7

7.1.1 집계 요청의 구조


curl 'localhost:9200/get-together/group/_search?pretty' -d '{

"aggs" : {

"top_tags" : {

"terms" : {

"field" : "tags.verbatim"

}

}

}

}'


curl 'localhost:9200/get-together/group/_search?pretty' -d '{

"query" : {

"match" : {

"location_group" : "Denver"

}

},

"aggregations" : {

"top_tags" : {

"terms" : {

"field" : "tags.verbatim"

}

}

}

}'

'IT > Elasticsearch' 카테고리의 다른 글