Search with multiple geo_bounding_box

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?

As 2 filter clauses of a bool query?

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