Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SpanNearPayloadCheckQuery

    Only return those matches that have a specific payload at the given position.

    Inheritance
    System.Object
    Query
    SpanQuery
    SpanPositionCheckQuery
    SpanNearPayloadCheckQuery
    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()
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Search.Spans
    Assembly: Lucene.Net.dll
    Syntax
    public class SpanNearPayloadCheckQuery : SpanPositionCheckQuery

    Constructors

    | Improve this Doc View Source

    SpanNearPayloadCheckQuery(SpanNearQuery, ICollection<Byte[]>)

    Declaration
    public SpanNearPayloadCheckQuery(SpanNearQuery match, ICollection<byte[]> payloadToMatch)
    Parameters
    Type Name Description
    SpanNearQuery match

    The underlying SpanQuery to check.

    System.Collections.Generic.ICollection<System.Byte[]> payloadToMatch

    The ICollection{byte[]} of payloads to match. IMPORTANT: If the type provided does not implement System.Collections.Generic.IList<T> (including arrays) or System.Collections.Generic.ISet<T>, it should either implement System.Collections.IStructuralEquatable or override System.Object.Equals(System.Object) and System.Object.GetHashCode() with implementations that compare the values of the byte arrays to ensure they are the same.

    Fields

    | Improve this Doc View Source

    m_payloadToMatch

    Declaration
    protected readonly ICollection<byte[]> m_payloadToMatch
    Field Value
    Type Description
    System.Collections.Generic.ICollection<System.Byte[]>

    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
    SpanPositionCheckQuery.AcceptPosition(Spans)
    | Improve this Doc View Source

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    Query.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
    Query.Equals(Object)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    Query.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
    Query.ToString(String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.