Package org.apache.solr.search
Class AbstractReRankQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.search.ExtendedQueryBase
-
- org.apache.solr.search.RankQuery
-
- org.apache.solr.search.AbstractReRankQuery
-
- All Implemented Interfaces:
ExtendedQuery
public abstract class AbstractReRankQuery extends RankQuery
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<org.apache.lucene.util.BytesRef>
boostedPriority
protected org.apache.lucene.search.Query
mainQuery
protected int
reRankDocs
protected org.apache.lucene.search.Rescorer
reRankQueryRescorer
-
Constructor Summary
Constructors Constructor Description AbstractReRankQuery(org.apache.lucene.search.Query mainQuery, int reRankDocs, org.apache.lucene.search.Rescorer reRankQueryRescorer)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.Weight
createWeight(org.apache.lucene.search.IndexSearcher searcher, org.apache.lucene.search.ScoreMode scoreMode, float boost)
MergeStrategy
getMergeStrategy()
org.apache.lucene.search.TopDocsCollector
getTopDocsCollector(int len, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher)
org.apache.lucene.search.Query
rewrite(org.apache.lucene.index.IndexReader reader)
protected abstract org.apache.lucene.search.Query
rewrite(org.apache.lucene.search.Query rewrittenMainQuery)
void
visit(org.apache.lucene.search.QueryVisitor visitor)
RankQuery
wrap(org.apache.lucene.search.Query _mainQuery)
-
Methods inherited from class org.apache.solr.search.ExtendedQueryBase
getCache, getCacheSep, getCost, getOptions, getOptionsString, setCache, setCacheSep, setCost, toString
-
-
-
-
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
-
-
Method Detail
-
wrap
public RankQuery wrap(org.apache.lucene.search.Query _mainQuery)
-
getMergeStrategy
public MergeStrategy getMergeStrategy()
- Specified by:
getMergeStrategy
in classRankQuery
-
getTopDocsCollector
public org.apache.lucene.search.TopDocsCollector getTopDocsCollector(int len, QueryCommand cmd, org.apache.lucene.search.IndexSearcher searcher) throws IOException
- Specified by:
getTopDocsCollector
in classRankQuery
- Throws:
IOException
-
rewrite
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
- Overrides:
rewrite
in classorg.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 classorg.apache.lucene.search.Query
- Throws:
IOException
-
visit
public void visit(org.apache.lucene.search.QueryVisitor visitor)
- Overrides:
visit
in classorg.apache.lucene.search.Query
-
-