Hi
Im trying to search GEO Location along with other terms in AND condition, but the below query throws
QueryParsingException[[myproperty] failed to find geo_point field
"filtered":
{
"filter":
{
"and":
[
{ "terms": { "subject":["3456", "2348"] } },
{ "terms": { "course":["2346" , "2348"]} },
{"geo_bounding_box":
{
"location":
{
"top_right":
{
"lat": 53.5551999,
"lon": 7.227510199999999
},
"bottom_left":
{
"lat": 50.75038379999999,
"lon": 3.357962
}
}
}
}
]
}
}
My Data Format is
{
"subject": "3456",
"course": [ "2345", "2346", "2349" ], "location": { "bottom_right": [ -74.9, 40.23 ], "top_left": [ -74.4, 40.23 ] }
}