Class RankFeaturePhase

java.lang.Object
org.elasticsearch.action.search.RankFeaturePhase

public class RankFeaturePhase extends Object
This search phase is responsible for executing any re-ranking needed for the given search request, iff that is applicable. It starts by retrieving num_shards * rank_window_size results from the query phase and reduces them to a global list of the top rank_window_size results. It then reaches out to the shards to extract the needed feature data, and finally passes all this information to the appropriate RankFeatureRankCoordinatorContext which is responsible for reranking the results. If no rank query is specified, it proceeds directly to the next phase (FetchSearchPhase) by first reducing the results.