Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PayloadNearQuery.PayloadNearSpanScorer

    Inheritance
    object
    DocIdSetIterator
    DocsEnum
    Scorer
    SpanScorer
    PayloadNearQuery.PayloadNearSpanScorer
    Inherited Members
    SpanScorer.m_spans
    SpanScorer.m_more
    SpanScorer.m_doc
    SpanScorer.m_freq
    SpanScorer.m_numMatches
    SpanScorer.m_docScorer
    SpanScorer.NextDoc()
    SpanScorer.Advance(int)
    SpanScorer.DocID
    SpanScorer.Freq
    SpanScorer.SloppyFreq
    SpanScorer.GetCost()
    Scorer.m_weight
    Scorer.Weight
    Scorer.GetChildren()
    DocsEnum.Attributes
    DocIdSetIterator.GetEmpty()
    DocIdSetIterator.NO_MORE_DOCS
    DocIdSetIterator.SlowAdvance(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Search.Payloads
    Assembly: Lucene.Net.dll
    Syntax
    public class PayloadNearQuery.PayloadNearSpanScorer : SpanScorer

    Constructors

    PayloadNearSpanScorer(PayloadNearQuery, Spans, Weight, Similarity, SimScorer)

    Declaration
    protected PayloadNearSpanScorer(PayloadNearQuery outerInstance, Spans spans, Weight weight, Similarity similarity, Similarity.SimScorer docScorer)
    Parameters
    Type Name Description
    PayloadNearQuery outerInstance
    Spans spans
    Weight weight
    Similarity similarity
    Similarity.SimScorer docScorer

    Fields

    m_payloadScore

    Declaration
    protected float m_payloadScore
    Field Value
    Type Description
    float

    Methods

    GetPayloads(Spans[])

    Declaration
    public virtual void GetPayloads(Spans[] subSpans)
    Parameters
    Type Name Description
    Spans[] subSpans

    GetScore()

    Returns the score of the current document matching the query. Initially invalid, until NextDoc() or Advance(int) is called the first time, or when called from within Collect(int).

    Declaration
    public override float GetScore()
    Returns
    Type Description
    float
    Overrides
    SpanScorer.GetScore()

    ProcessPayloads(ICollection<byte[]>, int, int)

    By default, uses the PayloadFunction to score the payloads, but can be overridden to do other things.

    Declaration
    protected virtual void ProcessPayloads(ICollection<byte[]> payLoads, int start, int end)
    Parameters
    Type Name Description
    ICollection<byte[]> payLoads

    The payloads

    int start

    The start position of the span being scored

    int end

    The end position of the span being scored

    See Also
    Spans()

    SetFreqCurrentDoc()

    Declaration
    protected override bool SetFreqCurrentDoc()
    Returns
    Type Description
    bool
    Overrides
    SpanScorer.SetFreqCurrentDoc()
    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.