public abstract class AbstractReRankQuery extends RankQuery
Modifier and Type | Field and Description |
---|---|
protected Set<BytesRef> |
boostedPriority |
protected Query |
mainQuery |
protected int |
reRankDocs |
protected Rescorer |
reRankQueryRescorer |
Constructor and Description |
---|
AbstractReRankQuery(Query mainQuery,
int reRankDocs,
Rescorer reRankQueryRescorer) |
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher searcher,
ScoreMode scoreMode,
float boost) |
MergeStrategy |
getMergeStrategy() |
TopDocsCollector |
getTopDocsCollector(int len,
QueryCommand cmd,
IndexSearcher searcher) |
Query |
rewrite(IndexReader reader) |
protected abstract Query |
rewrite(Query rewrittenMainQuery) |
void |
visit(QueryVisitor visitor) |
RankQuery |
wrap(Query _mainQuery) |
getCache, getCacheSep, getCost, getOptions, getOptionsString, setCache, setCacheSep, setCost, toString
protected Query mainQuery
protected final int reRankDocs
protected final Rescorer reRankQueryRescorer
public MergeStrategy getMergeStrategy()
getMergeStrategy
in class RankQuery
public TopDocsCollector getTopDocsCollector(int len, QueryCommand cmd, IndexSearcher searcher) throws IOException
getTopDocsCollector
in class RankQuery
IOException
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
protected abstract Query rewrite(Query rewrittenMainQuery) throws IOException
IOException
public Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight
in class Query
IOException
public void visit(QueryVisitor visitor)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.