Class ScoreAndDoc

java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.ScoreAndDoc

final class ScoreAndDoc extends Scorable
  • Field Details

    • score

      float score
    • doc

      int doc
  • Constructor Details

    • ScoreAndDoc

      ScoreAndDoc()
  • Method Details

    • docID

      public int docID()
      Description copied from class: Scorable
      Returns the doc ID that is currently being scored.
      Specified by:
      docID in class Scorable
    • score

      public float score()
      Description copied from class: Scorable
      Returns the score of the current document matching the query.
      Specified by:
      score in class Scorable