diff --git a/lucene/src/java/org/apache/lucene/search/FieldValueFilter.java b/lucene/src/java/org/apache/lucene/search/FieldValueFilter.java
index 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 true
iff this filter is negated, otherwise false
+ * @return true
iff this filter is negated, otherwise false
+ */
+ public boolean negate() {
+ return negate;
+ }
@Override
public DocIdSet getDocIdSet(AtomicReaderContext context, Bits acceptDocs)