HI,
Suppose I give assign id's to restraurant and want to get all the id's in given region when given longitude and latitude is given?Please find the below query and changes that need to be made.Thank you in advance.
GET /Restraurants/Grate_A/_search
{
"query" : {
"constant_score" : {
"filter" : {
"bool" : {
"should" : [
{ "term" : {"City" : "Dallas"}}
],
sort: {
_geo_distance: {
location: "#{80},#{180}",
order: "asc",
unit: "mi"
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.