Package org.elasticsearch.plugins
Interface SearchPlugin
public interface SearchPlugin
Plugin for extending search time behavior.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Specification for anAggregation
.static class
Context available during fetch phase construction.static class
Specification for aPipelineAggregator
.static class
SearchPlugin.QuerySpec<T extends QueryBuilder>
Specification of customQuery
.static class
SearchPlugin.RescorerSpec<T extends RescorerBuilder<T>>
static class
SearchPlugin.ScoreFunctionSpec<T extends ScoreFunctionBuilder<T>>
Specification of customScoreFunction
.static class
SearchPlugin.SearchExtensionSpec<W extends NamedWriteable,P>
Specification of search time behavior extension like a customMovAvgModel
orScoreFunction
.static class
SearchPlugin.SearchExtSpec<T extends SearchExtBuilder>
Specification for aSearchExtBuilder
which represents an additional section that can be parsed in a search request (within the ext element).static class
Specification of customSignificanceHeuristic
.static class
SearchPlugin.SuggesterSpec<T extends SuggestionBuilder<T>>
Specification for aSuggester
. -
Method Summary
Modifier and TypeMethodDescriptiondefault List<Consumer<ValuesSourceRegistry.Builder>>
Allows plugins to register new aggregations using aggregation names that are already defined in Core, as long as the new aggregations target different ValuesSourceTypesdefault List<SearchPlugin.AggregationSpec>
The newAggregation
s added by this plugin.default List<FetchSubPhase>
The newFetchSubPhase
s defined by this plugin.default Map<String,Highlighter>
Get theHighlighter
s defined by this plugin.The newMovAvgModel
s defined by this plugin.default List<SearchPlugin.PipelineAggregationSpec>
The newPipelineAggregator
s added by this plugin.default List<SearchPlugin.QuerySpec<?>>
The newQuery
s defined by this plugin.Allows plugins to register a cache differentiator which contributes to the cacheKey computation for the request cache.default List<SearchPlugin.RescorerSpec<?>>
The newRescorer
s added by this plugin.default List<SearchPlugin.ScoreFunctionSpec<?>>
The newScoreFunction
s defined by this plugin.default List<SearchPlugin.SearchExtSpec<?>>
The newSearchExtBuilder
s defined by this plugin.default List<SearchPlugin.SignificanceHeuristicSpec<?>>
The newSignificanceHeuristic
s defined by this plugin.default List<SearchPlugin.SuggesterSpec<?>>
The newSuggester
s defined by this plugin.
-
Method Details
-
getScoreFunctions
The newScoreFunction
s defined by this plugin. -
getSignificanceHeuristics
The newSignificanceHeuristic
s defined by this plugin. SignificanceHeuristics are used by theSignificantTerms
aggregation to pick which terms are significant for a given query. -
getMovingAverageModels
default List<SearchPlugin.SearchExtensionSpec<MovAvgModel,MovAvgModel.AbstractModelParser>> getMovingAverageModels()The newMovAvgModel
s defined by this plugin. MovAvgModels are used by theMovAvgPipelineAggregator
to model trends in data. -
getFetchSubPhases
The newFetchSubPhase
s defined by this plugin. -
getSearchExts
The newSearchExtBuilder
s defined by this plugin. -
getHighlighters
Get theHighlighter
s defined by this plugin. -
getSuggesters
The newSuggester
s defined by this plugin. -
getQueries
The newQuery
s defined by this plugin. -
getAggregations
The newAggregation
s added by this plugin. -
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 newPipelineAggregator
s added by this plugin. -
getRescorers
The newRescorer
s added by this plugin. -
getRequestCacheKeyDifferentiator
@Nullable default CheckedBiConsumer<ShardSearchRequest,StreamOutput,IOException> getRequestCacheKeyDifferentiator()Allows plugins to register a cache differentiator which contributes to the cacheKey computation for the request cache. This helps differentiate between queries that are otherwise identical.
-