Save This Page
Home » lucene-2.4.1-src » org.apache » lucene » search » [javadoc | source]
org.apache.lucene.search
public class: TopDocs [javadoc | source]
java.lang.Object
   org.apache.lucene.search.TopDocs

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    TopFieldDocs

Expert: Returned by low-level search implementations.
Field Summary
public  int totalHits    Expert: The total number of hits for the query.
    Also see:
    Hits#length()
 
public  ScoreDoc[] scoreDocs    Expert: The top hits for the query. 
Constructor:
 public TopDocs(int totalHits,
    ScoreDoc[] scoreDocs,
    float maxScore) 
    Expert: Constructs a TopDocs.
Method from org.apache.lucene.search.TopDocs Summary:
getMaxScore,   setMaxScore
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.TopDocs Detail:
 public float getMaxScore() 
    Expert: Returns the maximum score value encountered.
 public  void setMaxScore(float maxScore) 
    Expert: Sets the maximum score value encountered.