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, toStringprotected Query mainQuery
protected final int reRankDocs
protected final Rescorer reRankQueryRescorer
public MergeStrategy getMergeStrategy()
getMergeStrategy in class RankQuerypublic TopDocsCollector getTopDocsCollector(int len, QueryCommand cmd, IndexSearcher searcher) throws IOException
getTopDocsCollector in class RankQueryIOExceptionpublic Query rewrite(IndexReader reader) throws IOException
rewrite in class QueryIOExceptionprotected abstract Query rewrite(Query rewrittenMainQuery) throws IOException
IOExceptionpublic Weight createWeight(IndexSearcher searcher, ScoreMode scoreMode, float boost) throws IOException
createWeight in class QueryIOExceptionpublic void visit(QueryVisitor visitor)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.