Class ValueSource.ScorableView

    • Field Detail

      • docId

        int docId
      • scoresDocId

        int scoresDocId
      • score

        float score
    • Constructor Detail

      • ScorableView

        public ScorableView​(int docId,
                            float score)
      • ScorableView

        public ScorableView​(DoubleValues scores)
    • Method Detail

      • 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()
                    throws java.io.IOException
        Description copied from class: Scorable
        Returns the score of the current document matching the query.
        Specified by:
        score in class Scorable
        Throws:
        java.io.IOException