Hi,
I have few records in DB having latitude and longitude value 0. I am storing them as a geo points in elastic search.
"location": {
"lat": 0,
"lon": 0
}
Could I filter to ignore records having lat = 0 and lon = 0 ? There is query to specify the range but can't find anything to exclude records having 0 lat & lon?
{
"query": {
"filtered": {
"filter": {
"geo_distance_range": {
"location": {
"lat": 40,
"lon": -74
}
}
}
}
}
}