public class QueryWrapperFilter extends Filter
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 and Description |
|---|
QueryWrapperFilter(Query query)
Constructs a filter which only matches documents matching
query. |
| Modifier and Type | Method and Description |
|---|---|
java.util.BitSet |
bits(IndexReader reader)
Deprecated.
Use
getDocIdSet(IndexReader) instead. |
boolean |
equals(java.lang.Object o) |
DocIdSet |
getDocIdSet(IndexReader reader) |
int |
hashCode() |
java.lang.String |
toString() |
public QueryWrapperFilter(Query query)
query.public java.util.BitSet bits(IndexReader reader) throws java.io.IOException
getDocIdSet(IndexReader) instead.public DocIdSet getDocIdSet(IndexReader reader) throws java.io.IOException
getDocIdSet in class Filterjava.io.IOExceptionDocIdBitSetpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.