mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 13:38:49 +00:00
Currently we don't throw an error when there is more than one query clause specified in a must/must_not/should/filter object of the bool query without using array notation, e.g.: { "bool" : { "must" : { "match" : { ... }, "match": { ... }}}} In these cases, only the first query will be parsed and further behaviour is unspecified, possibly leading to silently ignoring the rest of the query. Instead we should throw a ParsingException if we don't encounter an END_OBJECT token after having parsed the query clause.