Must_not boolean query in 7.7

Hi @marspy, thanks for opening this question and your interest in Elasticseach. We recently made a small change to the parsing logic for this particular query. I think the fact that we previously accepted arrays inside arrays like must_not : [ [ .... ] ] is an error and was only accepted by an unintended leniency in the parsing process. The way this is documented and also should be considered correct is "must_not": [ { ... some query ... }, { ... some other query ... } ].
Hope this helps.

2 Likes