public class

TopFieldDocs

extends TopDocs
java.lang.Object
   ↳ org.apache.lucene.search.TopDocs
     ↳ org.apache.lucene.search.TopFieldDocs

Class Overview

Represents hits returned by search(Query, Filter, int, Sort).

Summary

Fields
public SortField[] fields The fields which were used to sort results by.
[Expand]
Inherited Fields
From class org.apache.lucene.search.TopDocs
Public Constructors
TopFieldDocs(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)
Creates one of these objects.
[Expand]
Inherited Methods
From class org.apache.lucene.search.TopDocs
From class java.lang.Object

Fields

public SortField[] fields

The fields which were used to sort results by.

Public Constructors

public TopFieldDocs (int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)

Creates one of these objects.

Parameters
totalHits Total number of hits for the query.
scoreDocs The top hits for the query.
fields The sort criteria used to find the top hits.
maxScore The maximum score encountered.