Save This Page
Home » lucene-2.4.1-src » org.apache » lucene » search » [javadoc | source]
org.apache.lucene.search
public class: QueryWrapperFilter [javadoc | source]
java.lang.Object
   org.apache.lucene.search.Filter
      org.apache.lucene.search.QueryWrapperFilter

All Implemented Interfaces:
    Serializable

Constrains search results to only match those which also match a provided query.

This could be used, for example, with a RangeQuery on a suitably formatted date field to implement date filtering. One could re-use a single QueryFilter that matches, e.g., only documents modified within the last week. The QueryFilter and RangeQuery would only need to be reconstructed once per day.

Constructor:
 public QueryWrapperFilter(Query query) 
    Constructs a filter which only matches documents matching query.
Method from org.apache.lucene.search.QueryWrapperFilter Summary:
bits,   equals,   getDocIdSet,   hashCode,   toString
Methods from org.apache.lucene.search.Filter:
bits,   getDocIdSet
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.QueryWrapperFilter Detail:
 public BitSet bits(IndexReader reader) throws IOException 
Deprecated! Use - #getDocIdSet(IndexReader) instead.

 public boolean equals(Object o) 
 public DocIdSet getDocIdSet(IndexReader reader) throws IOException 
 public int hashCode() 
 public String toString()