FileDocCategorySizeDatePackage
TopDocs.javaAPI DocApache Lucene 1.4.31150Tue Mar 30 00:48:04 BST 2004org.apache.lucene.search

TopDocs

public class TopDocs extends Object implements Serializable
Expert: Returned by low-level search implementations.
see
Searcher#search(Query,Filter,int)

Fields Summary
public int
totalHits
Expert: The total number of hits for the query.
public ScoreDoc[]
scoreDocs
Expert: The top hits for the query.
Constructors Summary
TopDocs(int totalHits, ScoreDoc[] scoreDocs)
Expert: Constructs a TopDocs.

    this.totalHits = totalHits;
    this.scoreDocs = scoreDocs;
  
Methods Summary