java.lang.Object | ||
↳ | org.apache.lucene.search.Query | |
↳ | org.apache.lucene.search.FilteredQuery |
A query that applies a filter to the results of another query.
Note: the bits are retrieved from the filter each time this query is used in a search - use a CachingWrapperFilter to avoid regenerating the bits every time.
Created: Apr 20, 2004 8:58:29 AM
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new query which applies a filter to the results of the original query.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a Weight that applies the filter to the enclosed query's Weight.
| |||||||||||
Returns true iff
o is equal to this. | |||||||||||
Expert: adds all terms occurring in this query to the terms set.
| |||||||||||
Returns a hash code value for this object.
| |||||||||||
Rewrites the wrapped query.
| |||||||||||
Prints a user-readable version of this query.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.Query
| |||||||||||
From class
java.lang.Object
|
Constructs a new query which applies a filter to the results of the original query. Filter.getDocIdSet() will be called every time this query is used in a search.
query | Query to be filtered, cannot be null . |
---|---|
filter | Filter to apply to query results, cannot be null .
|
Returns a Weight that applies the filter to the enclosed query's Weight. This is accomplished by overriding the Scorer returned by the Weight.
IOException |
---|
Expert: adds all terms occurring in this query to the terms set. Only
works if this query is in its rewritten
form.
Returns a hash code value for this object.