Hi @chm Welcome to the community.
I just showed how to do this here
Look at the 3 posts following .. the first solution I put the OR in the query context , the 2nd I put the OR in the filter context... Which is what you are asking about.
There is a complete whole solution there.
I short an OR in a filter looks like this
GET discuss-test/_search
{
"query": {
"bool": {
"filter": [
{
"bool": {
"should": [
{
"term": {
"type": "canis"
}
},
{
"term": {
"name": "mary"
}
}
]
}
}
]
}
}
}