Package org.elasticsearch.plugins
Interface SearchPlugin
-
public interface SearchPluginPlugin for extending search time behavior.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSearchPlugin.AggregationSpecSpecification for anAggregation.static classSearchPlugin.FetchPhaseConstructionContextContext available during fetch phase construction.static classSearchPlugin.PipelineAggregationSpecSpecification for aPipelineAggregator.static classSearchPlugin.QuerySpec<T extends QueryBuilder>Specification of customQuery.static classSearchPlugin.RescorerSpec<T extends RescorerBuilder<T>>static classSearchPlugin.ScoreFunctionSpec<T extends ScoreFunctionBuilder<T>>Specification of customScoreFunction.static classSearchPlugin.SearchExtensionSpec<W extends NamedWriteable,P>Specification of search time behavior extension like a customMovAvgModelorScoreFunction.static classSearchPlugin.SearchExtSpec<T extends SearchExtBuilder>Specification for aSearchExtBuilderwhich represents an additional section that can be parsed in a search request (within the ext element).static classSearchPlugin.SuggesterSpec<T extends SuggestionBuilder<T>>Specification for aSuggester.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.List<SearchPlugin.AggregationSpec>getAggregations()The newAggregations added by this plugin.default java.util.List<FetchSubPhase>getFetchSubPhases(SearchPlugin.FetchPhaseConstructionContext context)The newFetchSubPhases defined by this plugin.default java.util.Map<java.lang.String,Highlighter>getHighlighters()Get theHighlighters defined by this plugin.default java.util.List<SearchPlugin.SearchExtensionSpec<MovAvgModel,MovAvgModel.AbstractModelParser>>getMovingAverageModels()The newMovAvgModels defined by this plugin.default java.util.List<SearchPlugin.PipelineAggregationSpec>getPipelineAggregations()The newPipelineAggregators added by this plugin.default java.util.List<SearchPlugin.QuerySpec<?>>getQueries()The newQuerys defined by this plugin.default java.util.List<SearchPlugin.RescorerSpec<?>>getRescorers()The nextRescorers added by this plugin.default java.util.List<SearchPlugin.ScoreFunctionSpec<?>>getScoreFunctions()The newScoreFunctions defined by this plugin.default java.util.List<SearchPlugin.SearchExtSpec<?>>getSearchExts()The newSearchExtBuilders defined by this plugin.default java.util.List<SearchPlugin.SearchExtensionSpec<SignificanceHeuristic,SignificanceHeuristicParser>>getSignificanceHeuristics()The newSignificanceHeuristics defined by this plugin.default java.util.List<SearchPlugin.SuggesterSpec<?>>getSuggesters()The newSuggesters defined by this plugin.
-
-
-
Method Detail
-
getScoreFunctions
default java.util.List<SearchPlugin.ScoreFunctionSpec<?>> getScoreFunctions()
The newScoreFunctions defined by this plugin.
-
getSignificanceHeuristics
default java.util.List<SearchPlugin.SearchExtensionSpec<SignificanceHeuristic,SignificanceHeuristicParser>> getSignificanceHeuristics()
The newSignificanceHeuristics defined by this plugin. SignificanceHeuristics are used by theSignificantTermsaggregation to pick which terms are significant for a given query.
-
getMovingAverageModels
default java.util.List<SearchPlugin.SearchExtensionSpec<MovAvgModel,MovAvgModel.AbstractModelParser>> getMovingAverageModels()
The newMovAvgModels defined by this plugin. MovAvgModels are used by theMovAvgPipelineAggregatorto model trends in data.
-
getFetchSubPhases
default java.util.List<FetchSubPhase> getFetchSubPhases(SearchPlugin.FetchPhaseConstructionContext context)
The newFetchSubPhases defined by this plugin.
-
getSearchExts
default java.util.List<SearchPlugin.SearchExtSpec<?>> getSearchExts()
The newSearchExtBuilders defined by this plugin.
-
getHighlighters
default java.util.Map<java.lang.String,Highlighter> getHighlighters()
Get theHighlighters defined by this plugin.
-
getSuggesters
default java.util.List<SearchPlugin.SuggesterSpec<?>> getSuggesters()
The newSuggesters defined by this plugin.
-
getQueries
default java.util.List<SearchPlugin.QuerySpec<?>> getQueries()
The newQuerys defined by this plugin.
-
getAggregations
default java.util.List<SearchPlugin.AggregationSpec> getAggregations()
The newAggregations added by this plugin.
-
getPipelineAggregations
default java.util.List<SearchPlugin.PipelineAggregationSpec> getPipelineAggregations()
The newPipelineAggregators added by this plugin.
-
getRescorers
default java.util.List<SearchPlugin.RescorerSpec<?>> getRescorers()
The nextRescorers added by this plugin.
-
-