I have a pre-existing ES 7.x queries which use both should
and filter/must
clauses together like so for example
"query": {
"bool": {
"should": [
....
]
"must": [
....
]
}
},
And these queries return data because because by default minimum_should_match
param is set to 1. However, I know since Elastic 7x there's a breaking change and when should
clause is used in conjunction with either must
/filter
then minimum_should_match
parameter is set to 0 so should
clause doesn't get applied by default (see see this response and elastic doc). That's a massive breaking change!! It will be a huge change for me to add minimum_should_match
= 1 in every query I use should
so I wonder whether there's some global setting I could use to default my ElasticSearch's the parameter minimum_should_match
= 1 whenever should
is used?