Show / Hide Table of Contents

    Class ScoreDoc

    Holds one hit in TopDocs.

    Inheritance
    System.Object
    ScoreDoc
    FieldDoc
    FieldValueHitQueue.Entry
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class ScoreDoc : object

    Constructors

    | Improve this Doc View Source

    ScoreDoc(Int32, Single)

    Constructs a ScoreDoc.

    Declaration
    public ScoreDoc(int doc, float score)
    Parameters
    Type Name Description
    System.Int32 doc
    System.Single score
    | Improve this Doc View Source

    ScoreDoc(Int32, Single, Int32)

    Constructs a ScoreDoc.

    Declaration
    public ScoreDoc(int doc, float score, int shardIndex)
    Parameters
    Type Name Description
    System.Int32 doc
    System.Single score
    System.Int32 shardIndex

    Properties

    | Improve this Doc View Source

    Doc

    A hit document's number.

    Declaration
    public int Doc { get; set; }
    Property Value
    Type Description
    System.Int32
    See Also
    Doc(Int32)
    | Improve this Doc View Source

    Score

    The score of this document for the query.

    Declaration
    public float Score { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    ShardIndex

    Only set by Merge(Sort, Int32, Int32, TopDocs[])

    Declaration
    public int ShardIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    ToString()

    A convenience method for debugging.

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