Package org.elasticsearch.search.rescore
Class RescoreContext
org.elasticsearch.search.rescore.RescoreContext
- Direct Known Subclasses:
QueryRescorer.QueryRescoreContext
public class RescoreContext
extends
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
-
Method Summary
Modifier and TypeMethodDescription<org.apache.lucene.search.Query>
Returns queries associated with the rescorer<>
int
Size of the window to rescore.boolean
isRescored(int docId)
rescorer()
The rescorer to actually apply.void
<> docIds)
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
RescoreContext
Build the context.- Parameters:
rescorer
- the rescorer actually performing the rescore.
-
-
Method Details
-
rescorer
The rescorer to actually apply. -
getWindowSize
public int getWindowSize()Size of the window to rescore. -
setRescoredDocs
public void setRescoredDocs(<> docIds) -
isRescored
public boolean isRescored(int docId) -
getRescoredDocs
public <> getRescoredDocs() -
getQueries
public <org.apache.lucene.search.Query> getQueries()Returns queries associated with the rescorer
-