Show / Hide Table of Contents

    Class SpanPositionCheckQuery

    Base class for filtering a SpanQuery based on the position of a match.

    Inheritance
    System.Object
    Query
    SpanQuery
    SpanPositionCheckQuery
    SpanNearPayloadCheckQuery
    SpanPayloadCheckQuery
    SpanPositionRangeQuery
    Inherited Members
    SpanQuery.CreateWeight(IndexSearcher)
    Query.Boost
    Query.ToString(String)
    Query.ToString()
    Query.Clone()
    Query.GetHashCode()
    Query.Equals(Object)
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class SpanPositionCheckQuery : SpanQuery

    Constructors

    | Improve this Doc View Source

    SpanPositionCheckQuery(SpanQuery)

    Declaration
    public SpanPositionCheckQuery(SpanQuery match)
    Parameters
    Type Name Description
    SpanQuery match

    Fields

    | Improve this Doc View Source

    m_match

    Declaration
    protected SpanQuery m_match
    Field Value
    Type Description
    SpanQuery

    Properties

    | Improve this Doc View Source

    Field

    Declaration
    public override string Field { get; }
    Property Value
    Type Description
    System.String
    Overrides
    SpanQuery.Field
    | Improve this Doc View Source

    Match

    Declaration
    public virtual SpanQuery Match { get; }
    Property Value
    Type Description
    SpanQuery

    The SpanQuery whose matches are filtered.

    Methods

    | Improve this Doc View Source

    AcceptPosition(Spans)

    Implementing classes are required to return whether the current position is a match for the passed in "match" SpanQuery.

    This is only called if the underlying Next() for the match is successful

    Declaration
    protected abstract SpanPositionCheckQuery.AcceptStatus AcceptPosition(Spans spans)
    Parameters
    Type Name Description
    Spans spans

    The Spans instance, positioned at the spot to check

    Returns
    Type Description
    SpanPositionCheckQuery.AcceptStatus

    Whether the match is accepted, rejected, or rejected and should move to the next doc.

    See Also
    Next()
    | Improve this Doc View Source

    ExtractTerms(ISet<Term>)

    Declaration
    public override void ExtractTerms(ISet<Term> terms)
    Parameters
    Type Name Description
    ISet<Term> terms
    Overrides
    Query.ExtractTerms(ISet<Term>)
    | Improve this Doc View Source

    GetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)

    Declaration
    public override Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary<Term, TermContext> termContexts)
    Parameters
    Type Name Description
    AtomicReaderContext context
    IBits acceptDocs
    IDictionary<Term, TermContext> termContexts
    Returns
    Type Description
    Spans
    Overrides
    SpanQuery.GetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)
    | Improve this Doc View Source

    Rewrite(IndexReader)

    Declaration
    public override Query Rewrite(IndexReader reader)
    Parameters
    Type Name Description
    IndexReader reader
    Returns
    Type Description
    Query
    Overrides
    Query.Rewrite(IndexReader)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)