I have this field mapping in my index:
"businessLocation": {
"type": "geo_point"
},
I wanted to find documents using exact match with my lat/long coordinates. I've tried geo_distance however, there's a requirement that my distance be greater than 0.
I even tried this query:
{
"query": {
"bool": {
"must": [
{
"query_string": {
"default_field": "businessLocation",
"query": "src.lat = 34.47 AND src.lon = -122.37"
}
}
]
}
}
}
However, I got this error:
Geo fields do not support exact searching, use dedicated geo queries instead: [businessLocation]