Skip to content

Apache Lucene open-source search software

clarify QueryVisitor.acceptField javadoc w.r.t. not being term-specific (#12540)

Christine Poerschkeef42af65f27f
diff --git a/lucene/core/src/java/org/apache/lucene/search/QueryVisitor.java b/lucene/core/src/java/org/apache/lucene/search/QueryVisitor.java
index e963c0ddf84..644e21a371a 100644
--- a/lucene/core/src/java/org/apache/lucene/search/QueryVisitor.java
+++ b/lucene/core/src/java/org/apache/lucene/search/QueryVisitor.java
@@ -59,7 +59,7 @@ public abstract class QueryVisitor {
public void visitLeaf(Query query) {}
/**
- * Whether or not terms from this field are of interest to the visitor
+ * Whether or not this field is of interest to the visitor
*
* <p>Implement this to avoid collecting terms from heavy queries such as {@link TermInSetQuery}
* that are not running on fields of interest