Class FetchPhase

java.lang.Object
org.elasticsearch.search.fetch.FetchPhase

public final class FetchPhase extends Object
Fetch 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 phase
  • Constructor Details

  • Method Details

    • execute

      public void execute(SearchContext context, int[] docIdsToLoad, RankDocShardInfo rankDocs)
    • execute

      public void execute(SearchContext context, int[] docIdsToLoad, RankDocShardInfo rankDocs, @Nullable IntConsumer memoryChecker)
      Parameters:
      context -
      docIdsToLoad -
      rankDocs -
      memoryChecker - if not provided, the fetch phase will use the circuit breaker to check memory usage