add getFilter to ConstantScoreQuery

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@507374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2007-02-14 03:12:50 +00:00
parent ee12ced8e7
commit 070ed839b2
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}