| Modifier and Type | Class | Description |
|---|---|---|
static class |
QueryRescorer.QueryRescoreContext |
| Constructor | Description |
|---|---|
QueryRescorer() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.lucene.search.Explanation |
explain(int topLevelDocId,
org.apache.lucene.search.IndexSearcher searcher,
RescoreContext rescoreContext,
org.apache.lucene.search.Explanation sourceExplanation) |
Executes an
Explanation phase on the rescorer. |
void |
extractTerms(org.apache.lucene.search.IndexSearcher searcher,
RescoreContext rescoreContext,
java.util.Set<org.apache.lucene.index.Term> termsSet) |
Extracts all terms needed to execute this
Rescorer. |
org.apache.lucene.search.TopDocs |
rescore(org.apache.lucene.search.TopDocs topDocs,
org.apache.lucene.search.IndexSearcher searcher,
RescoreContext rescoreContext) |
Modifies the result of the previously executed search (
TopDocs)
in place based on the given RescoreContext. |
public static final Rescorer INSTANCE
public org.apache.lucene.search.TopDocs rescore(org.apache.lucene.search.TopDocs topDocs,
org.apache.lucene.search.IndexSearcher searcher,
RescoreContext rescoreContext)
throws java.io.IOException
RescorerTopDocs)
in place based on the given RescoreContext.rescore in interface RescorertopDocs - the result of the previously executed searchsearcher - the searcher used for this search. This will never be null.rescoreContext - the RescoreContext. This will never be nulljava.io.IOException - if an IOException occurs during rescoringpublic org.apache.lucene.search.Explanation explain(int topLevelDocId,
org.apache.lucene.search.IndexSearcher searcher,
RescoreContext rescoreContext,
org.apache.lucene.search.Explanation sourceExplanation)
throws java.io.IOException
RescorerExplanation phase on the rescorer.explain in interface RescorertopLevelDocId - the global / top-level document ID to explainsearcher - the searcher used for this search. This will never be null.rescoreContext - context for this rescorersourceExplanation - explanation of the source of the documents being fed into this rescorejava.io.IOException - if an IOException occurspublic void extractTerms(org.apache.lucene.search.IndexSearcher searcher,
RescoreContext rescoreContext,
java.util.Set<org.apache.lucene.index.Term> termsSet)
throws java.io.IOException
RescorerRescorer. This method
is executed in a distributed frequency collection roundtrip for
SearchType.DFS_QUERY_THEN_FETCHextractTerms in interface Rescorerjava.io.IOException