Package org.elasticsearch.search.rescore
Class QueryRescorer.QueryRescoreContext
java.lang.Object
org.elasticsearch.search.rescore.RescoreContext
org.elasticsearch.search.rescore.QueryRescorer.QueryRescoreContext
- Enclosing class:
- QueryRescorer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.lucene.search.Query>
Returns queries associated with the rescorerorg.apache.lucene.search.Query
query()
float
float
void
setQuery(org.apache.lucene.search.Query query)
void
setQueryWeight(float queryWeight)
void
setRescoreQueryWeight(float rescoreQueryWeight)
void
setScoreMode(String scoreMode)
void
setScoreMode(QueryRescoreMode scoreMode)
Methods inherited from class org.elasticsearch.search.rescore.RescoreContext
getRescoredDocs, getWindowSize, isRescored, rescorer, setRescoredDocs
-
Constructor Details
-
QueryRescoreContext
public QueryRescoreContext(int windowSize)
-
-
Method Details
-
setQuery
public void setQuery(org.apache.lucene.search.Query query) -
getQueries
Description copied from class:RescoreContext
Returns queries associated with the rescorer- Overrides:
getQueries
in classRescoreContext
-
query
public org.apache.lucene.search.Query query() -
queryWeight
public float queryWeight() -
rescoreQueryWeight
public float rescoreQueryWeight() -
scoreMode
-
setRescoreQueryWeight
public void setRescoreQueryWeight(float rescoreQueryWeight) -
setQueryWeight
public void setQueryWeight(float queryWeight) -
setScoreMode
-
setScoreMode
-