public class BooleanFilter
extends org.apache.lucene.search.Filter
Constructor and Description |
---|
BooleanFilter() |
Modifier and Type | Method and Description |
---|---|
void |
add(FilterClause filterClause)
Adds a new FilterClause to the Boolean Filter container
|
boolean |
equals(Object obj) |
protected org.apache.lucene.search.DocIdSet |
finalResult(org.apache.lucene.util.OpenBitSetDISI result,
int maxDocs)
Deprecated.
Either use CachingWrapperFilter, or
switch to a different DocIdSet implementation yourself.
|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.IndexReader reader)
Returns the a DocIdSetIterator representing the Boolean composition
of the filters that have been added.
|
int |
hashCode() |
String |
toString()
Prints a user-readable version of this query.
|
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader) throws IOException
getDocIdSet
in class org.apache.lucene.search.Filter
IOException
protected org.apache.lucene.search.DocIdSet finalResult(org.apache.lucene.util.OpenBitSetDISI result, int maxDocs)
public void add(FilterClause filterClause)
filterClause
- A FilterClause object containing a Filter and an Occur parameterCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.