OpenSearch/modules/percolator/src
Alan Woodward a3ab7eb95d Correctly handle MSM for nested disjunctions (#50669)
With the rewrite of the percolator's QueryAnalyzer to use lucene's QueryVisitor API,
term queries that are direct children of a boolean query are handled separately from
other children. This works fine for conjunctions, but for disjunctions we need to
treat the extracted terms from these direct descendents along with extractions from
more deeply nested children to ensure that minimum-should-match requirements
are met correctly.

This commit changes the logic in QueryAnalyzer#getResult() to bundle child term
results with all other results before handling them.

Fixes #50305
2020-01-07 09:32:30 +00:00
..
main/java/org/elasticsearch/percolator Correctly handle MSM for nested disjunctions (#50669) 2020-01-07 09:32:30 +00:00
test Correctly handle MSM for nested disjunctions (#50669) 2020-01-07 09:32:30 +00:00