3.6.7.聚合元数据(Aggregation Metadata)
curl -XGET 'localhost:9200/twitter/tweet/_search?pretty' -H 'Content-Type: application/json' -d'
{
"size": 0,
"aggs": {
"titles": {
"terms": {
"field": "title"
},
"meta": {
"color": "blue"
}
}
}
}
'{
"aggregations": {
"titles": {
"meta": {
"color" : "blue"
},
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets": [
]
}
},
...
}Previous3.6.6.仅返回需要聚合的结果(Returning only aggregation results)Next3.6.8.返回聚合的类型(Returning the type of the aggregation)
Last updated