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 accurateSettings
object is provided.
-
Method Summary
Modifier and Type Method Description FetchPhase
getFetchPhase()
java.util.Map<java.lang.String,Highlighter>
getHighlighters()
Returns theHighlighter
registryParseFieldRegistry<MovAvgModel.AbstractModelParser>
getMovingAverageModelParserRegistry()
The registry ofMovAvgModel
s.java.util.List<NamedWriteableRegistry.Entry>
getNamedWriteables()
java.util.List<NamedXContentRegistry.Entry>
getNamedXContents()
ParseFieldRegistry<SignificanceHeuristicParser>
getSignificanceHeuristicParserRegistry()
The registry ofSignificanceHeuristic
s.static void
registerSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables)
-
-
-
Field Detail
-
INDICES_MAX_CLAUSE_COUNT_SETTING
public static final Setting<java.lang.Integer> INDICES_MAX_CLAUSE_COUNT_SETTING
-
-
Constructor Detail
-
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 Detail
-
getNamedWriteables
public java.util.List<NamedWriteableRegistry.Entry> getNamedWriteables()
-
getNamedXContents
public java.util.List<NamedXContentRegistry.Entry> getNamedXContents()
-
getHighlighters
public java.util.Map<java.lang.String,Highlighter> getHighlighters()
Returns theHighlighter
registry
-
getSignificanceHeuristicParserRegistry
public ParseFieldRegistry<SignificanceHeuristicParser> getSignificanceHeuristicParserRegistry()
The registry ofSignificanceHeuristic
s.
-
getMovingAverageModelParserRegistry
public ParseFieldRegistry<MovAvgModel.AbstractModelParser> getMovingAverageModelParserRegistry()
The registry ofMovAvgModel
s.
-
registerSmoothingModels
public static void registerSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables)
-
getFetchPhase
public FetchPhase getFetchPhase()
-
-