|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.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
CachingWrapperFilter,
Serialized Form| Constructor Summary | |
FilteredQuery(Query query,
Filter filter)
Constructs a new query which applies a filter to the results of the original query. |
|
| Method Summary | |
protected Weight |
createWeight(Searcher searcher)
Returns a Weight that applies the filter to the enclosed query's Weight. |
boolean |
equals(Object o)
Returns true iff o is equal to this. |
Query |
getQuery()
|
int |
hashCode()
Returns a hash code value for this object. |
Query |
rewrite(IndexReader reader)
Rewrites the wrapped query. |
String |
toString(String s)
Prints a user-readable version of this query. |
| Methods inherited from class org.apache.lucene.search.Query |
clone, combine, getBoost, getSimilarity, mergeBooleanQueries, setBoost, toString, weight |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FilteredQuery(Query query,
Filter filter)
query - Query to be filtered, cannot be null.filter - Filter to apply to query results, cannot be null.| Method Detail |
protected Weight createWeight(Searcher searcher)
createWeight in class Query
public Query rewrite(IndexReader reader)
throws IOException
rewrite in class QueryIOExceptionpublic Query getQuery()
public String toString(String s)
toString in class Querypublic boolean equals(Object o)
o is equal to this.
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||