In GeoDistance Elastic Search Query, I created a mapping with "geo_point" to map to one index. When I query with latitude as x , longitude as y, and radius as z, I get some rows (for eg. a,b,c). When I query again to the same index with same latitude as x, longitude as y and radius as (z+100), I get different rows(for eg.d,e,f)
How is this possible, if some rows appear in z, then same must appear in z+100 along with additional rows if available ?
My mapping is :
'{
"type_name": {
"properties": {
"pin": {
"properties": {
"location": {
"type": "geo_point"
}
}
}
}
}
}’
My query using java API is
GeoDistanceFilterBuilder fil = FilterBuilders
.geoDistanceFilter("pin.location")
.point(lat, lng)
.distance(radius, DistanceUnit.KILOMETERS)
.optimizeBbox("memory")
.geoDistance(GeoDistance.ARC).cache(true);
I m getting when same is queried using terminal "curl" cmd.
Can someone plz help me , what is wrong I m doing here ?
Thanks in advance.