org.apache.lucene.search

Class ScoreDoc

Implemented Interfaces:
java.io.Serializable
Known Direct Subclasses:
FieldDoc

public class ScoreDoc
extends java.lang.Object
implements java.io.Serializable

Expert: Returned by low-level search implementations.

See Also:
TopDocs, Serialized Form

Field Summary

int
doc
Expert: A hit document's number.
float
score
Expert: The score of this document for the query.

Constructor Summary

ScoreDoc(int doc, float score)
Expert: Constructs a ScoreDoc.

Field Details

doc

public int doc
Expert: A hit document's number.

See Also:
Searcher.doc(int)


score

public float score
Expert: The score of this document for the query.

Constructor Details

ScoreDoc

public ScoreDoc(int doc,
                float score)
Expert: Constructs a ScoreDoc.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.