Class TopFieldDocs
Represents hits returned by Search(Query, Filter, Int32, Sort).
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class TopFieldDocs : TopDocs
Constructors
| Improve this Doc View SourceTopFieldDocs(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. |
totalHits | Total number of hits for the query. |
Score |
scoreDocs | The top hits for the query. |
Sort |
fields | The sort criteria used to find the top hits. |
System. |
maxScore | The maximum score encountered. |
Properties
| Improve this Doc View SourceFields
The fields which were used to sort results by.
Declaration
public SortField[] Fields { get; set; }
Property Value
Type | Description |
---|---|
Sort |