Show / Hide Table of Contents

    Class PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer

    Inheritance
    System.Object
    DocIdSetIterator
    DocsEnum
    Scorer
    SpanScorer
    PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer
    Inherited Members
    SpanScorer.m_spans
    SpanScorer.m_more
    SpanScorer.m_doc
    SpanScorer.m_freq
    SpanScorer.m_numMatches
    SpanScorer.m_docScorer
    SpanScorer.NextDoc()
    SpanScorer.Advance(Int32)
    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(Int32)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Search.Payloads
    Assembly: Lucene.Net.dll
    Syntax
    protected class PayloadTermSpanScorer : SpanScorer

    Constructors

    | Improve this Doc View Source

    PayloadTermSpanScorer(PayloadTermQuery.PayloadTermWeight, TermSpans, Weight, Similarity.SimScorer)

    Declaration
    public PayloadTermSpanScorer(PayloadTermQuery.PayloadTermWeight outerInstance, TermSpans spans, Weight weight, Similarity.SimScorer docScorer)
    Parameters
    Type Name Description
    PayloadTermQuery.PayloadTermWeight outerInstance
    TermSpans spans
    Weight weight
    Similarity.SimScorer docScorer

    Fields

    | Improve this Doc View Source

    m_payload

    Declaration
    protected BytesRef m_payload
    Field Value
    Type Description
    BytesRef
    | Improve this Doc View Source

    m_payloadScore

    Declaration
    protected float m_payloadScore
    Field Value
    Type Description
    System.Single
    | Improve this Doc View Source

    m_payloadsSeen

    Declaration
    protected int m_payloadsSeen
    Field Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    GetPayloadScore()

    The score for the payload

    Declaration
    protected virtual float GetPayloadScore()
    Returns
    Type Description
    System.Single

    The score, as calculated by DocScore(Int32, String, Int32, Single)

    | Improve this Doc View Source

    GetScore()

    Declaration
    public override float GetScore()
    Returns
    Type Description
    System.Single GetSpanScore() * GetPayloadScore()
    Overrides
    SpanScorer.GetScore()
    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    | Improve this Doc View Source

    GetSpanScore()

    Returns the SpanScorer score only.

    Should not be overridden without good cause!

    Declaration
    protected virtual float GetSpanScore()
    Returns
    Type Description
    System.Single

    the score for just the Span part w/o the payload

    Exceptions
    Type Condition
    System.IO.IOException

    if there is a low-level I/O error

    See Also
    GetScore()
    | Improve this Doc View Source

    ProcessPayload(Similarity)

    Declaration
    protected virtual void ProcessPayload(Similarity similarity)
    Parameters
    Type Name Description
    Similarity similarity
    | Improve this Doc View Source

    SetFreqCurrentDoc()

    Declaration
    protected override bool SetFreqCurrentDoc()
    Returns
    Type Description
    System.Boolean
    Overrides
    SpanScorer.SetFreqCurrentDoc()

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)