LUCENE-8849: DocValuesRewriteMethod.visit should visit subquery

This commit is contained in:
Michele Palmia 2020-03-11 16:49:37 -04:00 committed by David Smiley
parent e43f8572cb
commit 5286098ac5
No known key found for this signature in database
GPG Key ID: 6FDFF3BF6796FD4A
2 changed files with 3 additions and 1 deletions

View File

@ -125,6 +125,8 @@ Bug Fixes
--------------------- ---------------------
* LUCENE-9259: Fix wrong NGramFilterFactory argument name for preserveOriginal option (Paul Pazderski) * LUCENE-9259: Fix wrong NGramFilterFactory argument name for preserveOriginal option (Paul Pazderski)
* LUCENE-8849: DocValuesRewriteMethod.visit wasn't visiting its embedded query (Michele Palmia, David Smiley)
Other Other
--------------------- ---------------------

View File

@ -74,7 +74,7 @@ public final class DocValuesRewriteMethod extends MultiTermQuery.RewriteMethod {
@Override @Override
public void visit(QueryVisitor visitor) { public void visit(QueryVisitor visitor) {
if (visitor.acceptField(query.getField())) { if (visitor.acceptField(query.getField())) {
visitor.visitLeaf(this); visitor.getSubVisitor(BooleanClause.Occur.FILTER, query);
} }
} }