ElasticSearch geo distance filter with multiple locations in array - possible?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Let's say we have a bunch of documents in an ElasticSearch index. Each documents has multiple locations in an array , like this: { "name" : "foobar" , "locations" : [ { "lat" : 40.708519 , "lon" : - 74.003212 }, { "lat" : 39.752609 , "lon" : - 104.998100 }, { "lat" : 51.506321 , "lon" : - 0.127140 } ] } According to the ElasticSearch reference guide the geo_distance filter can work with multiple locations / points per document. Once a single location / point matches the filter, the document will be included in the filter. So, is it