Apache Lucene open-source search software
FieldValueFitler should expose the field it uses
Simon Willnauerf7cd0e2557bb
diff --git a/lucene/src/java/org/apache/lucene/search/FieldValueFilter.java b/lucene/src/java/org/apache/lucene/search/FieldValueFilter.javaindex eb592aec3f7..14289c69c79 100644--- a/lucene/src/java/org/apache/lucene/search/FieldValueFilter.java+++ b/lucene/src/java/org/apache/lucene/search/FieldValueFilter.java@@ -56,6 +56,22 @@ public class FieldValueFilter extends Filter {this.field = field;this.negate = negate;}++ /**+ * Returns the field this filter is applied on.+ * @return the field this filter is applied on.+ */+ public String field() {+ return field;+ }++ /**+ * Returns <code>true</code> iff this filter is negated, otherwise <code>false</code>+ * @return <code>true</code> iff this filter is negated, otherwise <code>false</code>+ */+ public boolean negate() {+ return negate;+ }@Overridepublic DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs)