Class ValueSource.ScoreAndDoc

java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.queries.function.ValueSource.ScoreAndDoc
Enclosing class:
ValueSource

private static class ValueSource.ScoreAndDoc extends Scorable
  • Field Details

    • current

      int current
    • score

      float score
  • Constructor Details

    • ScoreAndDoc

      private 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