Package org.elasticsearch.search.fetch
package org.elasticsearch.search.fetch
Search phase that fetches the top hits from the shards after the results of the query phase have been merged. Pluggable by implementing
FetchSubPhase
and
SearchPlugin.getFetchSubPhases(org.elasticsearch.plugins.SearchPlugin.FetchPhaseConstructionContext)
.-
ClassDescriptionEncapsulates state required to execute fetch phasesFetch phase of a search request, used to fetch the actual top matching documents to be returned to the client, identified after reducing all of the matches returned by the query phaseSub phase within the fetch phase used to fetch things *about* the documents like highlighting or matched queries.Executes the logic for a
FetchSubPhase
against a particular leaf reader and hitShard level fetch base request.Shard level fetch request used with search.Context used to fetch thestored_fields
.