QueryWrapperFilter
on a BooleanQuery
instead@Deprecated public class BooleanFilter extends Filter implements Iterable<FilterClause>
Constructor and Description |
---|
BooleanFilter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Filter filter,
BooleanClause.Occur occur)
Deprecated.
|
void |
add(FilterClause filterClause)
Deprecated.
Adds a new FilterClause to the Boolean Filter container
|
List<FilterClause> |
clauses()
Deprecated.
Returns the list of clauses
|
boolean |
equals(Object obj)
Deprecated.
|
DocIdSet |
getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
Returns the a DocIdSetIterator representing the Boolean composition
of the filters that have been added.
|
int |
hashCode()
Deprecated.
|
Iterator<FilterClause> |
iterator()
Deprecated.
Returns an iterator on the clauses in this query.
|
String |
toString(String field)
Deprecated.
Prints a user-readable version of this Filter.
|
createWeight
public DocIdSet getDocIdSet(LeafReaderContext context, Bits acceptDocs) throws IOException
getDocIdSet
in class Filter
IOException
public void add(FilterClause filterClause)
filterClause
- A FilterClause object containing a Filter and an Occur parameterpublic final void add(Filter filter, BooleanClause.Occur occur)
public List<FilterClause> clauses()
public final Iterator<FilterClause> iterator()
Iterable
interface to
make it possible to do:
for (FilterClause clause : booleanFilter) {}
iterator
in interface Iterable<FilterClause>
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.