Class AbstractReRankQuery

    • Field Detail

      • mainQuery

        protected org.apache.lucene.search.Query mainQuery
      • reRankDocs

        protected final int reRankDocs
      • reRankQueryRescorer

        protected final org.apache.lucene.search.Rescorer reRankQueryRescorer
      • boostedPriority

        protected Set<org.apache.lucene.util.BytesRef> boostedPriority
    • Constructor Detail

      • AbstractReRankQuery

        public AbstractReRankQuery​(org.apache.lucene.search.Query mainQuery,
                                   int reRankDocs,
                                   org.apache.lucene.search.Rescorer reRankQueryRescorer)
    • Method Detail

      • wrap

        public RankQuery wrap​(org.apache.lucene.search.Query _mainQuery)
        Specified by:
        wrap in class RankQuery
      • rewrite

        public org.apache.lucene.search.Query rewrite​(org.apache.lucene.index.IndexReader reader)
                                               throws IOException
        Overrides:
        rewrite in class org.apache.lucene.search.Query
        Throws:
        IOException
      • rewrite

        protected abstract org.apache.lucene.search.Query rewrite​(org.apache.lucene.search.Query rewrittenMainQuery)
                                                           throws IOException
        Throws:
        IOException
      • createWeight

        public org.apache.lucene.search.Weight createWeight​(org.apache.lucene.search.IndexSearcher searcher,
                                                            org.apache.lucene.search.ScoreMode scoreMode,
                                                            float boost)
                                                     throws IOException
        Overrides:
        createWeight in class org.apache.lucene.search.Query
        Throws:
        IOException
      • visit

        public void visit​(org.apache.lucene.search.QueryVisitor visitor)
        Specified by:
        visit in class org.apache.lucene.search.Query