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
static Setting<java.lang.Integer>
INDICES_MAX_NESTED_DEPTH_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 accurateSettings
object is provided. -
Method Summary
Modifier and Type Method Description FetchPhase
getFetchPhase()
java.util.Map<java.lang.String,Highlighter>
getHighlighters()
Returns theHighlighter
registrystatic java.util.List<NamedWriteableRegistry.Entry>
getIntervalsSourceProviderNamedWritables()
ParseFieldRegistry<MovAvgModel.AbstractModelParser>
getMovingAverageModelParserRegistry()
The registry ofMovAvgModel
s.java.util.List<NamedWriteableRegistry.Entry>
getNamedWriteables()
java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
getNamedXContents()
ValuesSourceRegistry
getValuesSourceRegistry()
static void
registerSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INDICES_MAX_CLAUSE_COUNT_SETTING
-
INDICES_MAX_NESTED_DEPTH_SETTING
-
-
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 accurateSettings
object 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 includedSearchPlugin
objects.
-
-
Method Details
-
getNamedWriteables
-
getNamedXContents
public java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXContents() -
getValuesSourceRegistry
-
getHighlighters
Returns theHighlighter
registry -
getMovingAverageModelParserRegistry
The registry ofMovAvgModel
s. -
registerSmoothingModels
public static void registerSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables) -
getIntervalsSourceProviderNamedWritables
public static java.util.List<NamedWriteableRegistry.Entry> getIntervalsSourceProviderNamedWritables() -
getFetchPhase
-