Module org.elasticsearch.server
Class RerankingRankFeaturePhaseRankShardContext
java.lang.Object
org.elasticsearch.search.rank.context.RankFeaturePhaseRankShardContext
org.elasticsearch.search.rank.rerank.RerankingRankFeaturePhaseRankShardContext
The
ReRankingRankFeaturePhaseRankShardContext
is handles the SearchHits
generated from the RankFeatureShardPhase
and builds the RankFeatureShardResult
for the reranking phase, by reading the field info for the specified field
during
construction.-
Field Summary
Fields inherited from class org.elasticsearch.search.rank.context.RankFeaturePhaseRankShardContext
field
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildRankFeatureShardResult
(SearchHits hits, int shardId) This is used to fetch the feature data for a given set of documents, using theFetchPhase
and theFetchFieldsPhase
subphase.Methods inherited from class org.elasticsearch.search.rank.context.RankFeaturePhaseRankShardContext
getField
-
Constructor Details
-
RerankingRankFeaturePhaseRankShardContext
-
-
Method Details
-
buildRankFeatureShardResult
Description copied from class:RankFeaturePhaseRankShardContext
This is used to fetch the feature data for a given set of documents, using theFetchPhase
and theFetchFieldsPhase
subphase. The feature data is then stored in aRankFeatureDoc
and passed back to the coordinator.- Specified by:
buildRankFeatureShardResult
in classRankFeaturePhaseRankShardContext
-