Search with multiple geo_bounding_box


(Casa Taloyum) #1

Hello, everyone

I have tried a lot to search with geo_bounding_box

now the question is:

I have two or more box for search, like

{
  "top_left":{
    "lat":1,
    "lon":3 
  },
  "bottom_right":{
    "lat":3,
    "lon":1
  }
}

and

{
  "top_left":{
    "lat":10,
    "lon":30
  },
  "bottom_right":{
    "lat":30,
    "lon":10
  }
}

I want results meets both of the geo box above. How do I achieve this?


(David Pilato) #2

As 2 filter clauses of a bool query?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.