public class QueryFilter 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 |
---|
QueryFilter(Query query)
Constructs a filter which only matches documents matching
query . |
public QueryFilter(Query query)
query
.public BitSet bits(IndexReader reader) throws IOException
Filter
bits
in class Filter
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.