Package org.elasticsearch.search.query
Class QueryPhase
- java.lang.Object
-
- org.elasticsearch.search.query.QueryPhase
-
- All Implemented Interfaces:
SearchPhase
public class QueryPhase extends java.lang.Object implements SearchPhase
Query phase of a search request, used to run the query and get back from each shard information about the matching documents (document ids and score or sort criteria) so that matches can be reduced on the coordinating node
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.search.SearchPhase
SearchPhase.SearchContextSourcePrinter
-
-
Constructor Summary
Constructors Constructor Description QueryPhase()
-
Method Summary
Modifier and Type Method Description voidexecute(SearchContext searchContext)Executes the search phasevoidpreProcess(SearchContext context)Performs pre processing of the search context before the execute.
-
-
-
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 searchContext) throws QueryPhaseExecutionException
Description copied from interface:SearchPhaseExecutes the search phase- Specified by:
executein interfaceSearchPhase- Throws:
QueryPhaseExecutionException
-
-