Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SpanPositionRangeQuery

    Checks to see if the Match lies between a start and end position

    Inheritance
    object
    Query
    SpanQuery
    SpanPositionCheckQuery
    SpanPositionRangeQuery
    SpanFirstQuery
    Inherited Members
    SpanPositionCheckQuery.m_match
    SpanPositionCheckQuery.Match
    SpanPositionCheckQuery.Field
    SpanPositionCheckQuery.ExtractTerms(ISet<Term>)
    SpanPositionCheckQuery.GetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)
    SpanPositionCheckQuery.Rewrite(IndexReader)
    SpanQuery.CreateWeight(IndexSearcher)
    Query.Boost
    Query.ToString()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public class SpanPositionRangeQuery : SpanPositionCheckQuery

    Constructors

    SpanPositionRangeQuery(SpanQuery, int, int)

    Checks to see if the Match lies between a start and end position

    Declaration
    public SpanPositionRangeQuery(SpanQuery match, int start, int end)
    Parameters
    Type Name Description
    SpanQuery match
    int start
    int end
    See Also
    SpanFirstQuery

    Fields

    m_end

    Checks to see if the Match lies between a start and end position

    Declaration
    protected int m_end
    Field Value
    Type Description
    int
    See Also
    SpanFirstQuery

    m_start

    Checks to see if the Match lies between a start and end position

    Declaration
    protected int m_start
    Field Value
    Type Description
    int
    See Also
    SpanFirstQuery

    Properties

    End

    Checks to see if the Match lies between a start and end position

    Declaration
    public virtual int End { get; }
    Property Value
    Type Description
    int

    The maximum end position permitted in a match.

    See Also
    SpanFirstQuery

    Start

    Checks to see if the Match lies between a start and end position

    Declaration
    public virtual int Start { get; }
    Property Value
    Type Description
    int

    The minimum position permitted in a match

    See Also
    SpanFirstQuery

    Methods

    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 MoveNext() for the match is successful
    Declaration
    protected override 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.

    Overrides
    SpanPositionCheckQuery.AcceptPosition(Spans)
    See Also
    MoveNext()

    Clone()

    Returns a clone of this query.

    Declaration
    public override object Clone()
    Returns
    Type Description
    object
    Overrides
    Query.Clone()
    See Also
    SpanFirstQuery

    Equals(object)

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

    Declaration
    public override 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
    Query.Equals(object)
    See Also
    SpanFirstQuery

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    Query.GetHashCode()
    See Also
    SpanFirstQuery

    ToString(string)

    Prints a query to a string, with field assumed to be the default field and omitted.

    Declaration
    public override string ToString(string field)
    Parameters
    Type Name Description
    string field
    Returns
    Type Description
    string
    Overrides
    Query.ToString(string)
    See Also
    SpanFirstQuery

    See Also

    SpanFirstQuery
    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.