Hi, I encountered 2 problems when following the doc, ES version is 7.9.
As the doc when use type="indexed" option in bounding box query, the geo-point type must have lat and lon indexed, but I want to know how to do it? (when I set "lat_lon"=true in mapping, will cause a error "Mapping definition for [location] has unsupported parameters: [lat_lon : true]")
As the doc ES don't support multi locations per document field when I use type="indexed" option in my query, but actually I got this unexpected data whose location field has 2 pair of geo-point. Is my understanding right? I 'm confused about this.
It seems recommend not to use this type parameter, right? But in my local test 500,000 data, I find if I use type=indexed, the bounding box query is faster.
geo-query filter
performance(ms)
performance(ms)
performance(ms)
BoundingBoxQuery
4,127
3,367
4,911
BoundingBoxQueryIndexed
21
14
26
Could you pls tell me why this happened? Does this parameter affect the query speed? Thank you for help in advance!
This 2 query both can get 495,049 data, but for the indexed query, it was faster as above table shows.
Could you pls explain that why you abandon the type parameter, after all it has a better performance through I tested.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.