Class TopFieldDocs
Represents hits returned by Search(Query, Filter?, int, Sort).
Inherited Members
Namespace: Lucene.Net.Search
Assembly: Lucene.Net.dll
Syntax
public class TopFieldDocs : TopDocs
Constructors
TopFieldDocs(int, ScoreDoc[], SortField[], float)
Creates one of these objects.
Declaration
public TopFieldDocs(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)
Parameters
Type | Name | Description |
---|---|---|
int | 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. |
float | maxScore | The maximum score encountered. |
Properties
Fields
The fields which were used to sort results by.
Declaration
public SortField[] Fields { get; set; }
Property Value
Type | Description |
---|---|
SortField[] |