Class ReRankCollector.BoostedComp

  • All Implemented Interfaces:
    Comparator<org.apache.lucene.search.ScoreDoc>
    Enclosing class:
    ReRankCollector

    public static class ReRankCollector.BoostedComp
    extends Object
    implements Comparator<org.apache.lucene.search.ScoreDoc>
    • Constructor Detail

      • BoostedComp

        public BoostedComp​(com.carrotsearch.hppc.IntIntHashMap boostedDocs,
                           org.apache.lucene.search.ScoreDoc[] scoreDocs,
                           float maxScore)
    • Method Detail

      • compare

        public int compare​(org.apache.lucene.search.ScoreDoc doc1,
                           org.apache.lucene.search.ScoreDoc doc2)
        Specified by:
        compare in interface Comparator<org.apache.lucene.search.ScoreDoc>