Package org.elasticsearch.search.dfs
Class DfsPhase
java.lang.Object
org.elasticsearch.search.dfs.DfsPhase
- All Implemented Interfaces:
SearchPhase
public class DfsPhase extends java.lang.Object implements SearchPhase
Dfs phase of a search request, used to make scoring 100% accurate by collecting additional info from each shard before the query phase.
The additional information is used to better compare the scores coming from all the shards, which depend on local factors (e.g. idf)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.SearchPhase
SearchPhase.SearchContextSourcePrinter -
Constructor Summary
Constructors Constructor Description DfsPhase() -
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 Details
-
DfsPhase
public DfsPhase()
-
-
Method Details
-
preProcess
Description copied from interface:SearchPhasePerforms pre processing of the search context before the execute.- Specified by:
preProcessin interfaceSearchPhase
-
execute
Description copied from interface:SearchPhaseExecutes the search phase- Specified by:
executein interfaceSearchPhase
-