Class ReRankCollector

  • All Implemented Interfaces:
    org.apache.lucene.search.Collector

    public class ReRankCollector
    extends org.apache.lucene.search.TopDocsCollector
    • Field Summary

      • Fields inherited from class org.apache.lucene.search.TopDocsCollector

        EMPTY_TOPDOCS, pq, totalHits, totalHitsRelation
    • Constructor Summary

      Constructors 
      Constructor Description
      ReRankCollector​(int reRankDocs, int length, org.apache.lucene.search.Rescorer reRankQueryRescorer, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher, Set<org.apache.lucene.util.BytesRef> boostedPriority)  
    • Constructor Detail

      • ReRankCollector

        public ReRankCollector​(int reRankDocs,
                               int length,
                               org.apache.lucene.search.Rescorer reRankQueryRescorer,
                               QueryCommand cmd,
                               org.apache.lucene.search.IndexSearcher searcher,
                               Set<org.apache.lucene.util.BytesRef> boostedPriority)
                        throws IOException
        Throws:
        IOException
    • Method Detail

      • getTotalHits

        public int getTotalHits()
        Overrides:
        getTotalHits in class org.apache.lucene.search.TopDocsCollector
      • getLeafCollector

        public org.apache.lucene.search.LeafCollector getLeafCollector​(org.apache.lucene.index.LeafReaderContext context)
                                                                throws IOException
        Throws:
        IOException
      • scoreMode

        public org.apache.lucene.search.ScoreMode scoreMode()
      • topDocs

        public org.apache.lucene.search.TopDocs topDocs​(int start,
                                                        int howMany)
        Overrides:
        topDocs in class org.apache.lucene.search.TopDocsCollector