Package org.elasticsearch.search
Class SearchModule
java.lang.Object
org.elasticsearch.search.SearchModule
public class SearchModule
extends java.lang.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<java.lang.Integer>INDICES_MAX_CLAUSE_COUNT_SETTING -
Constructor Summary
Constructors Constructor Description SearchModule(Settings settings, boolean transportClient, java.util.List<SearchPlugin> plugins)Constructs a new SearchModule object NOTE: This constructor should not be called in production unless an accurateSettingsobject is provided. -
Method Summary
Modifier and Type Method Description FetchPhasegetFetchPhase()java.util.Map<java.lang.String,Highlighter>getHighlighters()Returns theHighlighterregistrystatic java.util.List<NamedWriteableRegistry.Entry>getIntervalsSourceProviderNamedWritables()ParseFieldRegistry<MovAvgModel.AbstractModelParser>getMovingAverageModelParserRegistry()The registry ofMovAvgModels.java.util.List<NamedWriteableRegistry.Entry>getNamedWriteables()java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>getNamedXContents()ValuesSourceRegistrygetValuesSourceRegistry()static voidregisterSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables)
-
Field Details
-
Constructor Details
-
SearchModule
public SearchModule(Settings settings, boolean transportClient, java.util.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 Details
-
getNamedWriteables
-
getNamedXContents
public java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXContents() -
getValuesSourceRegistry
-
getHighlighters
Returns theHighlighterregistry -
getMovingAverageModelParserRegistry
The registry ofMovAvgModels. -
registerSmoothingModels
public static void registerSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables) -
getIntervalsSourceProviderNamedWritables
public static java.util.List<NamedWriteableRegistry.Entry> getIntervalsSourceProviderNamedWritables() -
getFetchPhase
-