From 4f691e946ec61bfe224ad10c1d425b19948d819a Mon Sep 17 00:00:00 2001 From: Dmitry Cherniachenko <2sabio@gmail.com> Date: Tue, 27 Feb 2024 17:28:55 +0100 Subject: [PATCH] Fix MultiTermQueryDocValuesWrapper not propagating QueryVisitor --- .../java/org/apache/lucene/search/DocValuesRewriteMethod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/DocValuesRewriteMethod.java b/lucene/core/src/java/org/apache/lucene/search/DocValuesRewriteMethod.java index 9c412ff95fe..6aee32853dd 100644 --- a/lucene/core/src/java/org/apache/lucene/search/DocValuesRewriteMethod.java +++ b/lucene/core/src/java/org/apache/lucene/search/DocValuesRewriteMethod.java @@ -72,7 +72,7 @@ public final class DocValuesRewriteMethod extends MultiTermQuery.RewriteMethod { @Override public void visit(QueryVisitor visitor) { if (visitor.acceptField(query.getField())) { - visitor.getSubVisitor(BooleanClause.Occur.FILTER, query); + query.visit(visitor.getSubVisitor(BooleanClause.Occur.FILTER, this)); } }