Elasticsearch aggregation. Order by nested bucket doc_count

后端 未结 2 1363
你的背包
你的背包 2021-01-26 19:34

What I want to achieve is aggregation by unique pairs (city, STATE). As per Elasticsearch documentation The terms aggregation does not support collecting terms from multiple

2条回答
  •  遇见更好的自我
    2021-01-26 20:08

    I don't believe there is a way to sort on the inner doc_count accross multiple buckets. In ES 2.0 (still in Beta) you'll be able to take action on aggregations but that's not possible in ES 1.x

提交回复
热议问题