Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TopFieldDocs

    Represents hits returned by Search(Query, Filter, Int32, Sort).

    Inheritance
    System.Object
    TopDocs
    TopFieldDocs
    Inherited Members
    TopDocs.TotalHits
    TopDocs.ScoreDocs
    TopDocs.MaxScore
    TopDocs.Merge(Sort, Int32, TopDocs[])
    TopDocs.Merge(Sort, Int32, Int32, TopDocs[])
    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 class TopFieldDocs : TopDocs

    Constructors

    | Improve this Doc View Source

    TopFieldDocs(Int32, ScoreDoc[], SortField[], Single)

    Creates one of these objects.

    Declaration
    public TopFieldDocs(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)
    Parameters
    Type Name Description
    System.Int32 totalHits

    Total number of hits for the query.

    ScoreDoc[] scoreDocs

    The top hits for the query.

    SortField[] fields

    The sort criteria used to find the top hits.

    System.Single maxScore

    The maximum score encountered.

    Properties

    | Improve this Doc View Source

    Fields

    The fields which were used to sort results by.

    Declaration
    public SortField[] Fields { get; set; }
    Property Value
    Type Description
    SortField[]
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.