Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Filter
    ChainedFilter
    Inherited Members
    Lucene.Net.Search.Filter.NewAnonymous(Func<, , >)
    Namespace: Lucene.Net.Queries
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class ChainedFilter : Filter

    Constructors

    | Improve this Doc View Source

    ChainedFilter(Filter[])

    Ctor.

    Declaration
    public ChainedFilter(Filter[] chain)
    Parameters
    Type Name Description
    Filter[] chain

    The chain of filters

    | Improve this Doc View Source

    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

    | Improve this Doc View Source

    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 Source

    AND

    Declaration
    public const int AND = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    ANDNOT

    Declaration
    public const int ANDNOT = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    DEFAULT

    Logical operation when none is declared. Defaults to OR.

    Declaration
    public const int DEFAULT = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    OR

    Declaration
    public const int OR = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    XOR

    Declaration
    public const int XOR = null
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetDocIdSet(AtomicReaderContext, IBits)

    GetDocIdSet(AtomicReaderContext, IBits).

    Declaration
    public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
    Parameters
    Type Name Description
    AtomicReaderContext context
    IBits acceptDocs
    Returns
    Type Description
    DocIdSet
    Overrides
    Filter.GetDocIdSet(AtomicReaderContext, IBits)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)