Package org.elasticsearch.script
Support for running user provided scripts (in the request, in cluster state, etc) in portions of various requests
(
FunctionScoreQuery
, Aggregation
,
UpdateAction
, etc). Pluggable via implementing ScriptPlugin
.-
-
Class Summary Class Description AggregationScript BucketAggregationScript A script used in bucket aggregations that returns adouble
value.BucketAggregationSelectorScript A script used in bucket aggregations that returns aboolean
value.ClassPermission Checked by scripting engines to allow loading a java class.DynamicMap DynamicMap is used to wrap a Map for a script parameter.FieldScript A script to produce dynamic values for return fields.FilterScript A script implementation of a query filter.IngestConditionalScript A script used byConditionalProcessor
.IngestScript A script used by the Ingest Script Processor.JodaCompatibleZonedDateTime A wrapper around ZonedDateTime that exposes joda methods for backcompat.NumberSortScript ScoreScript A script used for adjusting the score on a per document basis.ScoreScript.ExplanationHolder A helper to take in an explanation from a script and turn it into anExplanation
ScoreScriptUtils ScoreScriptUtils.DecayDateExp ScoreScriptUtils.DecayDateGauss ScoreScriptUtils.DecayDateLinear ScoreScriptUtils.DecayGeoExp ScoreScriptUtils.DecayGeoGauss ScoreScriptUtils.DecayGeoLinear ScoreScriptUtils.DecayNumericExp ScoreScriptUtils.DecayNumericGauss ScoreScriptUtils.DecayNumericLinear ScoreScriptUtils.RandomScoreDoc ScoreScriptUtils.RandomScoreField Script Script
represents used-defined input that can be used to compile and execute a script from theScriptService
based on theScriptType
.ScriptCache Script cache and compilation rate limiter.ScriptCache.CompilationRate ScriptCacheStats ScriptContext<FactoryType> The information necessary to compile and run a script.ScriptContextInfo ScriptContextInfo.ScriptMethodInfo ScriptContextInfo.ScriptMethodInfo.ParameterInfo ScriptContextStats ScriptedMetricAggContexts ScriptedMetricAggContexts.CombineScript ScriptedMetricAggContexts.InitScript ScriptedMetricAggContexts.MapScript ScriptedMetricAggContexts.ReduceScript ScriptException.Position ScriptLanguagesInfo The allowable types, languages and their corresponding contexts.ScriptMetadata ScriptMetadata
is used to store user-defined scripts as part of theClusterState
using only an id as the key.ScriptMetadata.Builder A builder used to modify the currently stored scripts data held within theClusterState
.ScriptMetrics ScriptModule Manages buildingScriptService
.ScriptService ScriptStats SignificantTermsHeuristicScoreScript A script used in significant terms heuristic scoring.SimilarityScript A script that is used to buildScriptedSimilarity
instances.SimilarityWeightScript A script that is used to compute scoring factors that are the same for all documents.StoredScriptSource StoredScriptSource
represents user-defined parameters for a script saved in theClusterState
.StringSortScript TemplateScript A string template rendered as a script.TermsSetQueryScript UpdateScript An update script. -
Enum Summary Enum Description ScriptType ScriptType represents the way a script is stored and retrieved from theScriptService
. -
Exception Summary Exception Description GeneralScriptException Deprecated. Use ScriptException for exceptions from the scripting engine, otherwise use a more appropriate exception (e.g.ScriptException Exception from a scripting engine.