Show / Hide Table of Contents

    Class SpanFirstQuery

    Matches spans near the beginning of a field.

    This class is a simple extension of SpanPositionRangeQuery in that it assumes the start to be zero and only checks the end boundary.

    Inheritance
    System.Object
    Query
    SpanQuery
    SpanPositionCheckQuery
    SpanPositionRangeQuery
    SpanFirstQuery
    Inherited Members
    SpanPositionRangeQuery.m_start
    SpanPositionRangeQuery.m_end
    SpanPositionRangeQuery.Start
    SpanPositionRangeQuery.End
    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()
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public class SpanFirstQuery : SpanPositionRangeQuery

    Constructors

    | Improve this Doc View Source

    SpanFirstQuery(SpanQuery, Int32)

    Construct a SpanFirstQuery matching spans in match whose end position is less than or equal to end.

    Declaration
    public SpanFirstQuery(SpanQuery match, int end)
    Parameters
    Type Name Description
    SpanQuery match
    System.Int32 end

    Methods

    | Improve this Doc View Source

    AcceptPosition(Spans)

    Declaration
    protected override SpanPositionCheckQuery.AcceptStatus AcceptPosition(Spans spans)
    Parameters
    Type Name Description
    Spans spans
    Returns
    Type Description
    SpanPositionCheckQuery.AcceptStatus
    Overrides
    SpanPositionRangeQuery.AcceptPosition(Spans)
    | Improve this Doc View Source

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    SpanPositionRangeQuery.Clone()
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object o)
    Parameters
    Type Name Description
    System.Object o
    Returns
    Type Description
    System.Boolean
    Overrides
    SpanPositionRangeQuery.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    SpanPositionRangeQuery.GetHashCode()
    | Improve this Doc View Source

    ToString(String)

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