我大约有106万个文档的格式如下:
Client
我想请求所有记录,其中 geometry.coordinates [0] [X] [0](经度)的平均值在两个值之间,并且对于 geometry .coordinates [0] [X] [1](纬度)。
我该如何要求Elasticsearch?范围+平均数?
编辑:这是数据映射
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[
-0.3994018,
43.547069
],
[
-0.3994509,
43.5469605
],
[
-0.3995154,
43.5469097
],
[
-0.3995879,
43.5468503
],
[
-0.3996707,
43.5467618
],
[
-0.3997065,
43.546666
]
]
]
},
"properties" : {
"commune" : "64063",
"section" : "A",
"numero" : "105",
"id" : "640630000A0105",
"contenance" : 12280,
"prefixe" : "000",
"updated" : "2014-06-18",
"created" : "2013-11-14"
},
"id" : "640630000A0105",
"type" : "Feature"
我对Elastic还是很陌生,所以我没有发现一些明显错误所需的全部知识。
谢谢