java.lang.Object | ||
↳ | org.apache.lucene.search.Filter | |
↳ | org.apache.lucene.search.ChainedFilter |
Allows multiple Filter
s to be chained.
Logical operations such as NOT and XOR
are applied between filters. One operation can be used
for all filters, or a specific operation can be declared
for each filter.
Order in which filters are called depends on the position of the filter in the chain. It's probably more efficient to place the most restrictive filters /least computationally-intensive filters first.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | AND | ||||||||||
int | ANDNOT | ||||||||||
int | OR | ||||||||||
int | XOR |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DEFAULT | Logical operation when none is declared. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Ctor.
| |||||||||||
Ctor.
| |||||||||||
Ctor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Either use CachingWrapperFilter, or
switch to a different DocIdSet implementation yourself.
This method will be removed in Lucene 4.0
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.Filter
| |||||||||||
From class
java.lang.Object
|
Logical operation when none is declared. Defaults to OR.
Ctor.
chain | The chain of filters |
---|---|
logicArray | Logical operations to apply between filters |
Ctor.
chain | The chain of filters |
---|---|
logic | Logical operation to apply to ALL filters |
reader | a IndexReader instance opened on the index currently
searched on. Note, it is likely that the provided reader does not
represent the whole underlying index i.e. if the index has more than
one segment the given reader only represents a single segment. |
---|
IOException |
---|
This method is deprecated.
Either use CachingWrapperFilter, or
switch to a different DocIdSet implementation yourself.
This method will be removed in Lucene 4.0
Provide a SortedVIntList when it is definitely smaller than an OpenBitSet