Fix MultiTermQueryDocValuesWrapper not propagating QueryVisitor

This commit is contained in:
Dmitry Cherniachenko 2024-02-27 17:28:55 +01:00 committed by GitHub
parent 42269203cc
commit 4f691e946e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,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.getSubVisitor(BooleanClause.Occur.FILTER, query); query.visit(visitor.getSubVisitor(BooleanClause.Occur.FILTER, this));
} }
} }