Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MultiTermQueryWrapperFilter<Q>

    A wrapper for MultiTermQuery, that exposes its functionality as a Filter.

    MultiTermQueryWrapperFilter<Q> is not designed to be used by itself. Normally you subclass it to provide a Filter counterpart for a MultiTermQuery subclass.

    For example, TermRangeFilter and PrefixFilter extend MultiTermQueryWrapperFilter<Q>. This class also provides the functionality behind CONSTANT_SCORE_FILTER_REWRITE; this is why it is not abstract.
    Inheritance
    object
    Filter
    MultiTermQueryWrapperFilter<Q>
    NumericRangeFilter<T>
    PrefixFilter
    TermRangeFilter
    Inherited Members
    Filter.NewAnonymous(Func<AtomicReaderContext, IBits, DocIdSet>)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class MultiTermQueryWrapperFilter<Q> : Filter where Q : MultiTermQuery
    Type Parameters
    Name Description
    Q

    Constructors

    MultiTermQueryWrapperFilter(Q)

    Wrap a MultiTermQuery as a Filter.

    Declaration
    protected MultiTermQueryWrapperFilter(Q query)
    Parameters
    Type Name Description
    Q query

    Fields

    m_query

    A wrapper for MultiTermQuery, that exposes its functionality as a Filter.

    MultiTermQueryWrapperFilter<Q> is not designed to be used by itself. Normally you subclass it to provide a Filter counterpart for a MultiTermQuery subclass.

    For example, TermRangeFilter and PrefixFilter extend MultiTermQueryWrapperFilter<Q>. This class also provides the functionality behind CONSTANT_SCORE_FILTER_REWRITE; this is why it is not abstract.
    Declaration
    protected readonly Q m_query
    Field Value
    Type Description
    Q

    Properties

    Field

    Returns the field name for this query

    Declaration
    public string Field { get; }
    Property Value
    Type Description
    string

    Methods

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override sealed bool Equals(object o)
    Parameters
    Type Name Description
    object o
    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    GetDocIdSet(AtomicReaderContext, IBits)

    Returns a DocIdSet with documents that should be permitted in search results.

    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)

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override sealed int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current object.

    Overrides
    object.ToString()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.