Class ReRankWeight

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

    public class ReRankWeight
    extends org.apache.lucene.search.FilterWeight
    A Weight used by reranking queries.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.search.Weight

        org.apache.lucene.search.Weight.DefaultBulkScorer
    • Field Summary

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

        in
      • Fields inherited from class org.apache.lucene.search.Weight

        parentQuery
    • Constructor Summary

      Constructors 
      Constructor Description
      ReRankWeight​(org.apache.lucene.search.Query mainQuery, org.apache.lucene.search.Rescorer reRankQueryRescorer, org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.Weight mainWeight)  
    • Constructor Detail

      • ReRankWeight

        public ReRankWeight​(org.apache.lucene.search.Query mainQuery,
                            org.apache.lucene.search.Rescorer reRankQueryRescorer,
                            org.apache.lucene.search.IndexSearcher searcher,
                            org.apache.lucene.search.Weight mainWeight)
                     throws IOException
        Throws:
        IOException
    • Method Detail

      • explain

        public org.apache.lucene.search.Explanation explain​(org.apache.lucene.index.LeafReaderContext context,
                                                            int doc)
                                                     throws IOException
        Overrides:
        explain in class org.apache.lucene.search.FilterWeight
        Throws:
        IOException