need to upgrade from AND, OR filters on elasticsearch to boolean queries for ES7
There you go, just replace and
by bool/filter
and or
by bool/should
:
{ "query": { "bool": { "filter": [ { "bool": { "should": [ { "range": { "date_of_birth": { "lte": 5 } } }, { "range": { "age": { "gte": 15 } } } ] } }, { "range": { "begin_time": { "lte": 23 } } } ] } }}