Skip to content

Apache Lucene open-source search software

add getFilter to ConstantScoreQuery

Yonik Seeley070ed839b2d6
diff --git a/src/java/org/apache/lucene/search/ConstantScoreQuery.java b/src/java/org/apache/lucene/search/ConstantScoreQuery.java
index 0cc3923ca4d..3ec2d2b4b45 100644
--- a/src/java/org/apache/lucene/search/ConstantScoreQuery.java
+++ b/src/java/org/apache/lucene/search/ConstantScoreQuery.java
@@ -37,6 +37,11 @@ public class ConstantScoreQuery extends Query {
this.filter=filter;
}
+ /** Returns the encapsulated filter */
+ public Filter getFilter() {
+ return filter;
+ }
+
public Query rewrite(IndexReader reader) throws IOException {
return this;
}