Kibana geo distance syntax query


(Ishafizan Ishak) #1

Hi,

I'm trying to use kibana to search and return records x distance from a
specified log lat. I'm able to query and return results with the following,
but wondering how to query it via kibana

{
"sort": [
{
"_geo_distance": {
"my_checkins.my_geo": [
123,
4
],
"order": "asc",
"unit": "km"
}
}
],
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"geo_distance": {
"distance": "1km",
"my_checkins.my_geo": [
123,
4
]
}
}
}
}
}

... hv only got to

*my_checkins.my_geo:123,4 *into the search box and returns zero results.
need some insight how to apply the filter/geo_distance bits.

tx

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c21e6f3a-2480-4c72-aadf-ccea07dc0c53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2