org.apache.lucene.search

Class TopDocs

public class TopDocs extends Object implements Serializable

Expert: Returned by low-level search implementations.

See Also: Searcher

Field Summary
ScoreDoc[]scoreDocs
Expert: The top hits for the query.
inttotalHits
Expert: The total number of hits for the query.
Method Summary
floatgetMaxScore()
Expert: Returns the maximum score value encountered.
voidsetMaxScore(float maxScore)
Expert: Sets the maximum score value encountered.

Field Detail

scoreDocs

public ScoreDoc[] scoreDocs
Expert: The top hits for the query.

totalHits

public int totalHits
Expert: The total number of hits for the query.

See Also: length

Method Detail

getMaxScore

public float getMaxScore()
Expert: Returns the maximum score value encountered.

setMaxScore

public void setMaxScore(float maxScore)
Expert: Sets the maximum score value encountered.
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.