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 ReRankOperator
reRankOperator
protected org.apache.lucene.search.Rescorer
reRankQueryRescorer
protected ReRankScaler
reRankScaler
-
Constructor Summary
Constructors Constructor Description AbstractReRankQuery(org.apache.lucene.search.Query mainQuery, int reRankDocs, org.apache.lucene.search.Rescorer reRankQueryRescorer)
AbstractReRankQuery(org.apache.lucene.search.Query mainQuery, int reRankDocs, org.apache.lucene.search.Rescorer reRankQueryRescorer, ReRankScaler reRankScaler, ReRankOperator reRankOperator)
-
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<org.apache.lucene.search.ScoreDoc>
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, getCost, getOptions, getOptionsString, setCache, setCost, toString
-
Methods inherited from class org.apache.lucene.search.Query
classHash, equals, hashCode, rewrite, sameClassAs, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.search.ExtendedQuery
getCostAppliedQuery
-
-
-
-
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
-
reRankOperator
protected ReRankOperator reRankOperator
-
reRankScaler
protected ReRankScaler reRankScaler
-
-
Constructor Detail
-
AbstractReRankQuery
public AbstractReRankQuery(org.apache.lucene.search.Query mainQuery, int reRankDocs, org.apache.lucene.search.Rescorer reRankQueryRescorer, ReRankScaler reRankScaler, ReRankOperator reRankOperator)
-
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)
-
getMergeStrategy
public MergeStrategy getMergeStrategy()
- Specified by:
getMergeStrategy
in classRankQuery
-
getTopDocsCollector
public org.apache.lucene.search.TopDocsCollector<org.apache.lucene.search.ScoreDoc> 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)
- Specified by:
visit
in classorg.apache.lucene.search.Query
-
-