Class ScoreDoc

java.lang.Object
org.apache.lucene.search.ScoreDoc
Direct Known Subclasses:
FieldDoc, FieldValueHitQueue.Entry

public class ScoreDoc extends Object
Holds one hit in TopDocs.
  • Field Details

  • Constructor Details

    • ScoreDoc

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

      public ScoreDoc(int doc, float score, int shardIndex)
      Constructs a ScoreDoc.
  • Method Details