简体   繁体   中英

Grouping documents based on named and Lat ,long in Elastic Search

我想根据Elastic Search中的Name和Lat,Lang对文档进行分组。我探索了聚合API,但它仅提供了特定条件的计数,而不是实际的文档,有没有一种方法可以在Elastic Search中实现

you could use nested aggregations - something like aggregate by name, _id. And use second query to get document by ids.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM