public class ChainedFilter
extends org.apache.lucene.search.Filter
 Allows multiple Filters 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.
| Modifier and Type | Field and Description | 
|---|---|
| static int | AND | 
| static int | ANDNOT | 
| static int | DEFAULTLogical operation when none is declared. | 
| static int | OR | 
| static int | XOR | 
| Constructor and Description | 
|---|
| ChainedFilter(org.apache.lucene.search.Filter[] chain)Ctor. | 
| ChainedFilter(org.apache.lucene.search.Filter[] chain,
             int logic)Ctor. | 
| ChainedFilter(org.apache.lucene.search.Filter[] chain,
             int[] logicArray)Ctor. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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.
  This method will be removed in Lucene 4.0 | 
| org.apache.lucene.search.DocIdSet | getDocIdSet(org.apache.lucene.index.IndexReader reader)Filter.getDocIdSet(org.apache.lucene.index.IndexReader). | 
| String | toString() | 
public static final int OR
public static final int AND
public static final int ANDNOT
public static final int XOR
public static int DEFAULT
public ChainedFilter(org.apache.lucene.search.Filter[] chain)
chain - The chain of filterspublic ChainedFilter(org.apache.lucene.search.Filter[] chain,
             int[] logicArray)
chain - The chain of filterslogicArray - Logical operations to apply between filterspublic ChainedFilter(org.apache.lucene.search.Filter[] chain,
             int logic)
chain - The chain of filterslogic - Logical operation to apply to ALL filterspublic org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.IndexReader reader)
                                              throws IOException
Filter.getDocIdSet(org.apache.lucene.index.IndexReader).getDocIdSet in class org.apache.lucene.search.FilterIOException@Deprecated protected final org.apache.lucene.search.DocIdSet finalResult(org.apache.lucene.util.OpenBitSetDISI result, int maxDocs)