Module org.elasticsearch.server
Class RankFeaturePhaseRankShardContext
java.lang.Object
org.elasticsearch.search.rank.context.RankFeaturePhaseRankShardContext
- Direct Known Subclasses:
RerankingRankFeaturePhaseRankShardContext
RankFeaturePhaseRankShardContext is a base class used to execute the RankFeature phase on each shard.
In this class, we can fetch the feature data for a given set of documents and pass them back to the coordinator
through the RankShardResult.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RankShardResultbuildRankFeatureShardResult(SearchHits hits, int shardId) This is used to fetch the feature data for a given set of documents, using theFetchPhaseand theFetchFieldsPhasesubphase.getField()
-
Field Details
-
field
-
-
Constructor Details
-
RankFeaturePhaseRankShardContext
-
-
Method Details
-
getField
-
buildRankFeatureShardResult
This is used to fetch the feature data for a given set of documents, using theFetchPhaseand theFetchFieldsPhasesubphase. The feature data is then stored in aRankFeatureDocand passed back to the coordinator.
-