Package org.elasticsearch.search
Class SearchModule
java.lang.Object
org.elasticsearch.search.SearchModule
Sets up things that can be done at search time like queries, aggregations, and suggesters.
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionSearchModule(Settings settings, boolean transportClient, 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 TypeMethodDescriptionReturns theHighlighter
registrystatic List<NamedWriteableRegistry.Entry>
The registry ofMovAvgModel
s.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
static void
registerSmoothingModels(List<NamedWriteableRegistry.Entry> namedWriteables)
-
Field Details
-
INDICES_MAX_CLAUSE_COUNT_SETTING
-
INDICES_MAX_NESTED_DEPTH_SETTING
-
-
Constructor Details
-
SearchModule
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
-
getValuesSourceRegistry
-
getRequestCacheKeyDifferentiator
@Nullable public CheckedBiConsumer<ShardSearchRequest,StreamOutput,IOException> getRequestCacheKeyDifferentiator() -
getHighlighters
Returns theHighlighter
registry -
getMovingAverageModelParserRegistry
The registry ofMovAvgModel
s. -
registerSmoothingModels
-
getIntervalsSourceProviderNamedWritables
-
getFetchPhase
-