Reputation: 1122
I have a ElasticSearch 7.7 query with several filters (criteria that I don't want to be counted for the score), that look like that:
{
"from": 0,
"size": 100,
"query": {
"bool": {
"must": {
"match_all": {}
},
"filter": [
{
"term": {
"type": 4
}
},
{
"term": {
"gender": "female"
}
}
]
}
}
}
I would like to add a OR clause to two gender filters, in order to filter for all documents with a type=4
AND (gender=female
OR gender=unisex
). Is this possible?
Upvotes: 0
Views: 329