Package org.elasticsearch.search.fetch
Class FetchPhase
- java.lang.Object
-
- org.elasticsearch.search.fetch.FetchPhase
-
- All Implemented Interfaces:
SearchPhase
public class FetchPhase extends java.lang.Object implements SearchPhase
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.SearchPhase
SearchPhase.SearchContextSourcePrinter
-
-
Constructor Summary
Constructors Constructor Description FetchPhase(java.util.List<FetchSubPhase> fetchSubPhases)
-
Method Summary
Modifier and Type Method Description voidexecute(SearchContext context)Executes the search phasevoidpreProcess(SearchContext context)Performs pre processing of the search context before the execute.
-
-
-
Constructor Detail
-
FetchPhase
public FetchPhase(java.util.List<FetchSubPhase> fetchSubPhases)
-
-
Method Detail
-
preProcess
public void preProcess(SearchContext context)
Description copied from interface:SearchPhasePerforms pre processing of the search context before the execute.- Specified by:
preProcessin interfaceSearchPhase
-
execute
public void execute(SearchContext context)
Description copied from interface:SearchPhaseExecutes the search phase- Specified by:
executein interfaceSearchPhase
-
-