Package org.elasticsearch.search
Class SearchModule
- java.lang.Object
-
- org.elasticsearch.search.SearchModule
-
public class SearchModule extends java.lang.ObjectSets 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 theHighlighterregistryParseFieldRegistry<MovAvgModel.AbstractModelParser>getMovingAverageModelParserRegistry()The registry ofMovAvgModels.java.util.List<NamedWriteableRegistry.Entry>getNamedWriteables()java.util.List<NamedXContentRegistry.Entry>getNamedXContents()ParseFieldRegistry<SignificanceHeuristicParser>getSignificanceHeuristicParserRegistry()The registry ofSignificanceHeuristics.static voidregisterSmoothingModels(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 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 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 theHighlighterregistry
-
getSignificanceHeuristicParserRegistry
public ParseFieldRegistry<SignificanceHeuristicParser> getSignificanceHeuristicParserRegistry()
The registry ofSignificanceHeuristics.
-
getMovingAverageModelParserRegistry
public ParseFieldRegistry<MovAvgModel.AbstractModelParser> getMovingAverageModelParserRegistry()
The registry ofMovAvgModels.
-
registerSmoothingModels
public static void registerSmoothingModels(java.util.List<NamedWriteableRegistry.Entry> namedWriteables)
-
getFetchPhase
public FetchPhase getFetchPhase()
-
-