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[])
    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 © 2020 Licensed to the Apache Software Foundation (ASF)