Package org.elasticsearch.search
Class SearchModule
- java.lang.Object
-
- org.elasticsearch.search.SearchModule
-
public class SearchModule extends Object
Sets up things that can be done at search time like queries, aggregations, and suggesters.
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<Integer>INDICES_MAX_CLAUSE_COUNT_SETTING
-
Constructor Summary
Constructors Constructor Description SearchModule(Settings settings, boolean transportClient, List<SearchPlugin> plugins)Constructs a new SearchModule object NOTE: This constructor should not be called in production unless an accurateSettingsobject is provided.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FetchPhasegetFetchPhase()Map<String,Highlighter>getHighlighters()Returns theHighlighterregistryParseFieldRegistry<MovAvgModel.AbstractModelParser>getMovingAverageModelParserRegistry()The registry ofMovAvgModels.List<NamedWriteableRegistry.Entry>getNamedWriteables()List<NamedXContentRegistry.Entry>getNamedXContents()ParseFieldRegistry<SignificanceHeuristicParser>getSignificanceHeuristicParserRegistry()The registry ofSignificanceHeuristics.static voidregisterSmoothingModels(List<NamedWriteableRegistry.Entry> namedWriteables)
-
-
-
Constructor Detail
-
SearchModule
public SearchModule(Settings settings, boolean transportClient, List<SearchPlugin> plugins)
Constructs a new SearchModule object NOTE: This constructor should not be called in production unless an accurateSettingsobject is provided. When constructed, a static flag is set in LuceneBooleanQuery.setMaxClauseCount(int)according to the settings.- Parameters:
settings- Current settingstransportClient- Is this being constructed in the TransportClient or notplugins- List of includedSearchPluginobjects.
-
-
Method Detail
-
getNamedWriteables
public List<NamedWriteableRegistry.Entry> getNamedWriteables()
-
getNamedXContents
public List<NamedXContentRegistry.Entry> getNamedXContents()
-
getHighlighters
public Map<String,Highlighter> getHighlighters()
Returns theHighlighterregistry
-
getSignificanceHeuristicParserRegistry
public ParseFieldRegistry<SignificanceHeuristicParser> getSignificanceHeuristicParserRegistry()
The registry ofSignificanceHeuristics.
-
getMovingAverageModelParserRegistry
public ParseFieldRegistry<MovAvgModel.AbstractModelParser> getMovingAverageModelParserRegistry()
The registry ofMovAvgModels.
-
registerSmoothingModels
public static void registerSmoothingModels(List<NamedWriteableRegistry.Entry> namedWriteables)
-
getFetchPhase
public FetchPhase getFetchPhase()
-
-