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
-
Field Summary
Fields Modifier and Type Field Description static boolean
SYS_PROP_REWRITE_SORT
-
Constructor Summary
Constructors Constructor Description QueryPhase()
-
Method Summary
Modifier and Type Method Description void
execute(SearchContext searchContext)
Executes the search phasevoid
preProcess(SearchContext context)
Performs pre processing of the search context before the execute.
-
Field Details
-
SYS_PROP_REWRITE_SORT
public static final boolean SYS_PROP_REWRITE_SORT
-
-
Constructor Details
-
QueryPhase
public QueryPhase()
-
-
Method Details
-
preProcess
Description copied from interface:SearchPhase
Performs pre processing of the search context before the execute.- Specified by:
preProcess
in interfaceSearchPhase
-
execute
Description copied from interface:SearchPhase
Executes the search phase- Specified by:
execute
in interfaceSearchPhase
- Throws:
QueryPhaseExecutionException
-