FileDocCategorySizeDatePackage
TopFieldDocs.javaAPI DocApache Lucene 2.1.01711Wed Feb 14 10:46:40 GMT 2007org.apache.lucene.search

TopFieldDocs

public class TopFieldDocs extends TopDocs
Expert: Returned by low-level sorted search implementations.

Created: Feb 12, 2004 8:58:46 AM

author
Tim Jones (Nacimiento Software)
since
lucene 1.4
version
$Id: TopFieldDocs.java 472959 2006-11-09 16:21:50Z yonik $
see
Searcher#search(Query,Filter,int,Sort)

Fields Summary
public SortField[]
fields
The fields which were used to sort results by.
Constructors Summary
TopFieldDocs(int totalHits, ScoreDoc[] scoreDocs, SortField[] fields, float maxScore)
Creates one of these objects.

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

	  super (totalHits, scoreDocs, maxScore);
	  this.fields = fields;
	
Methods Summary