Show / Hide Table of Contents

    Class Scorer

    Expert: Common scoring functionality for different types of queries.

    A Scorer iterates over documents matching a query in increasing order of doc Id.

    Document scores are computed using a given Similarity implementation.

    NOTE: The values System.Single.NaN, System.Single.NegativeInfinity and System.Single.PositiveInfinity are not valid scores. Certain collectors (eg TopScoreDocCollector) will not properly collect hits with these scores.

    Inheritance
    System.Object
    DocIdSetIterator
    DocsEnum
    Scorer
    ConstantScoreQuery.ConstantScorer
    ScoreCachingWrappingScorer
    SpanScorer
    Inherited Members
    DocsEnum.Freq
    DocsEnum.Attributes
    DocIdSetIterator.GetEmpty()
    DocIdSetIterator.NO_MORE_DOCS
    DocIdSetIterator.DocID
    DocIdSetIterator.NextDoc()
    DocIdSetIterator.Advance(Int32)
    DocIdSetIterator.SlowAdvance(Int32)
    DocIdSetIterator.GetCost()
    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
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Scorer : DocsEnum

    Constructors

    | Improve this Doc View Source

    Scorer(Weight)

    Constructs a Scorer

    Declaration
    protected Scorer(Weight weight)
    Parameters
    Type Name Description
    Weight weight

    The scorers Weight.

    Fields

    | Improve this Doc View Source

    m_weight

    The Scorer's parent Weight. In some cases this may be null.

    Declaration
    protected readonly Weight m_weight
    Field Value
    Type Description
    Weight

    Properties

    | Improve this Doc View Source

    Weight

    returns parent Weight

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Declaration
    public virtual Weight Weight { get; }
    Property Value
    Type Description
    Weight

    Methods

    | Improve this Doc View Source

    GetChildren()

    Returns child sub-scorers

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Declaration
    public virtual ICollection<Scorer.ChildScorer> GetChildren()
    Returns
    Type Description
    System.Collections.Generic.ICollection<Scorer.ChildScorer>
    | Improve this Doc View Source

    GetScore()

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

    Declaration
    public abstract float GetScore()
    Returns
    Type Description
    System.Single
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)