Class ChainedFilter
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.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Queries
Assembly: Lucene.Net.Queries.dll
Syntax
public class ChainedFilter : Filter
Constructors
| Improve this Doc View SourceChainedFilter(Filter[])
Ctor.
Declaration
public ChainedFilter(Filter[] chain)
Parameters
Type | Name | Description |
---|---|---|
Filter[] | chain | The chain of filters |
ChainedFilter(Filter[], Int32)
Ctor.
Declaration
public ChainedFilter(Filter[] chain, int logic)
Parameters
Type | Name | Description |
---|---|---|
Filter[] | chain | The chain of filters |
System.Int32 | logic | Logical operation to apply to ALL filters |
ChainedFilter(Filter[], Int32[])
Ctor.
Declaration
public ChainedFilter(Filter[] chain, int[] logicArray)
Parameters
Type | Name | Description |
---|---|---|
Filter[] | chain | The chain of filters |
System.Int32[] | logicArray | Logical operations to apply between filters |
Fields
| Improve this Doc View SourceAND
Declaration
public const int AND = 1
Field Value
Type | Description |
---|---|
System.Int32 |
ANDNOT
Declaration
public const int ANDNOT = 2
Field Value
Type | Description |
---|---|
System.Int32 |
DEFAULT
Logical operation when none is declared. Defaults to OR.
Declaration
public const int DEFAULT = 0
Field Value
Type | Description |
---|---|
System.Int32 |
OR
Declaration
public const int OR = 0
Field Value
Type | Description |
---|---|
System.Int32 |
XOR
Declaration
public const int XOR = 3
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetDocIdSet(AtomicReaderContext, IBits)
Declaration
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs |
Returns
Type | Description |
---|---|
DocIdSet |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()