在我的弹性文档中,我有cityid,rootid,rootname,price。
Name and id of root which has minimum price in a City.
top 7 roots:- roots those have max number of entry in a City.
例如:-
CityId RootId RootName Price
11 1 ABC 90
11 1 ABC 100
11 2 DEF 80
11 2 DEF 90
11 2 DEF 60
cityid=11的答案:-
RootId RootName Price
2 DEF 60
1 ABC 90
2条答案
按热度按时间kninwzqo1#
我不知道嵌套的语法。添加json格式的工作示例。
索引Map:
索引数据:
搜索查询:
搜索结果:
fnatzsnv2#