Class DocumentScoreInfo<T>


  • public final class DocumentScoreInfo<T>
    extends Object
    A container used to return scored results with additional information.
    • Field Detail

      • document

        public long document
        The index of the document.
      • score

        public double score
        Its score.
      • info

        public T info
        Optional additional information.
      • SCORE_DOCUMENT_COMPARATOR

        public static final Comparator<DocumentScoreInfo<?>> SCORE_DOCUMENT_COMPARATOR
        A comparator that sorts DocumentScoreInfo instances by increasing score order and then by decreasing document order.
    • Constructor Detail

      • DocumentScoreInfo

        public DocumentScoreInfo​(long document,
                                 double score,
                                 T info)
      • DocumentScoreInfo

        public DocumentScoreInfo​(long document,
                                 double score)
      • DocumentScoreInfo

        public DocumentScoreInfo​(long document)