java.lang.Object
org.elasticsearch.search.rescore.RescoreContext
- Direct Known Subclasses:
QueryRescorer.QueryRescoreContext
Context available to the rescore while it is running. Rescore
implementations should extend this with any additional resources that
they will need while rescoring.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns queries associated with the rescorerintSize of the window to rescore.booleanisRescored(int docId) rescorer()The rescorer to actually apply.voidsetCancellationChecker(Runnable isCancelled) voidsetRescoredDocs(Set<Integer> docIds)
-
Constructor Details
-
RescoreContext
Build the context.- Parameters:
rescorer- the rescorer actually performing the rescore.
-
-
Method Details
-
setCancellationChecker
-
checkCancellation
public void checkCancellation() -
rescorer
The rescorer to actually apply. -
getWindowSize
public int getWindowSize()Size of the window to rescore. -
setRescoredDocs
-
isRescored
public boolean isRescored(int docId) -
getRescoredDocs
-
getParsedQueries
Returns queries associated with the rescorer
-