Constructor TopFieldDocs
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. |