Dear Team,
I am working on to filter record with match + range filter, but its throw following issue "[bool] query does not support [range]"
What I did:
Array
(
[index] => index_name
[type] => type_name
[from] => 0
[size] => 20
[body] => Array
(
[query] => Array
(
[bool] => Array
(
[should] => Array
(
[0] => Array
(
[match] => Array
(
[field1.field2.keyword] => awdweqweqwe
)
)
[1] => Array
(
[match] => Array
(
[field3] =>
)
)
[2] => Array
(
[match] => Array
(
[field3] => data
)
)
[3] => Array
(
[match] => Array
(
[field4] => 201
)
)
)
[range] => Array
(
[status] => Array
(
[gte] => 201
[lte] => 1000
)
)
)
)
[sort] => Array
(
[0] => Array
(
[updated_date] => Array
(
[order] => desc
)
)
)
)
)
Please suggest me, How to get range with match search data.
Thanks in advance