Assume I need to filter result with documents where one string field, 'roles', in "Role1" OR another string field, 'groups', is "Group1"
GET /_search
{
"query": {
"bool": {
"should": [
{
"match": {
"name": "Alex"
}
}
],
"filter": [
{
"bool": {
"should": [
{
"terms": {
"roles": [
"Role1"
]
}
},
{
"terms": {
"groups": [
"Group1"
]
}
}
]
}
}
]
}
}
}
Do I need to use "minimum_should_match": 1 if at least one should with Role1 or should with Group1 be found?
When parameter "minimum_should_match" is required in such type of filters ?