Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ScoreDoc

    Holds one hit in TopDocs.

    Inheritance
    System.Object
    ScoreDoc
    FieldDoc
    FieldValueHitQueue.Entry
    Inherited Members
    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)
    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public class ScoreDoc

    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
    Overrides
    System.Object.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.