Package org.elasticsearch.plugins
Interface SearchPlugin
public interface SearchPlugin
Plugin 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.SignificanceHeuristicSpec<T extends SignificanceHeuristic>Specification of customSignificanceHeuristic.static classSearchPlugin.SuggesterSpec<T extends SuggestionBuilder<T>>Specification for aSuggester. -
Method Summary
Modifier and Type Method Description default java.util.List<java.util.function.Consumer<ValuesSourceRegistry.Builder>>getAggregationExtentions()Allows plugins to register new aggregations using aggregation names that are already defined in Core, as long as the new aggregations target different ValuesSourceTypesdefault 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 newRescorers 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.SignificanceHeuristicSpec<?>>getSignificanceHeuristics()The newSignificanceHeuristics defined by this plugin.default java.util.List<SearchPlugin.SuggesterSpec<?>>getSuggesters()The newSuggesters defined by this plugin.
-
Method Details
-
getScoreFunctions
The newScoreFunctions defined by this plugin. -
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
The newSearchExtBuilders defined by this plugin. -
getHighlighters
Get theHighlighters defined by this plugin. -
getSuggesters
The newSuggesters defined by this plugin. -
getQueries
The newQuerys defined by this plugin. -
getAggregations
The newAggregations added by this plugin. -
getAggregationExtentions
default java.util.List<java.util.function.Consumer<ValuesSourceRegistry.Builder>> getAggregationExtentions()Allows plugins to register new aggregations using aggregation names that are already defined in Core, as long as the new aggregations target different ValuesSourceTypes- Returns:
- A list of the new registrar functions
-
getPipelineAggregations
The newPipelineAggregators added by this plugin. -
getRescorers
The newRescorers added by this plugin.
-