Package org.opensearch.script
package org.opensearch.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
.-
ClassDescriptionScripts for aggregationsA factory to construct stateful
AggregationScript
factories for a specific index.A factory to constructAggregationScript
instances.A script used in bucket aggregations that returns adouble
value.Factory for bucket agg scriptA script used in bucket aggregations that returns aboolean
value.Factory for bucket agg selector scriptChecked by scripting engines to allow loading a java class.DynamicMap is used to wrap a Map for a script parameter.To be implemented byScoreScript
which can provided anExplanation
of the score This is currently not used inside opensearch but it is used, see for example here: https://github.com/elastic/elasticsearch/issues/8561A script to produce dynamic values for return fields.Factory for field scriptA factory to constructFieldScript
instances.A script implementation of a query filter.A factory to construct statefulFilterScript
factories for a specific index.A factory to constructFilterScript
instances.Deprecated.Use ScriptException for exceptions from the scripting engine, otherwise use a more appropriate exception (e.g.A script used byConditionalProcessor
.Factory for ingest condition scriptA script used by the Ingest Script Processor.Factory for ingest scriptA wrapper around ZonedDateTime that exposes joda methods for backcompat.Script for number sortsA factory to construct statefulNumberSortScript
factories for a specific index.A factory to constructNumberSortScript
instances.A script used for adjusting the score on a per document basis.A helper to take in an explanation from a script and turn it into anExplanation
A factory to construct statefulScoreScript
factories for a specific index.A factory to constructScoreScript
instances.Utilities for scoring scriptsExponential date decayGaussian date decayLinear date decayExponential geo decayGaussian geo decay**** Decay functions on geo fieldExponential numeric decayGaussian numeric decayLinear numeric decayrandom score based on the internal Lucene document Idsrandom score based on the documents' values of the given fieldScript
represents used-defined input that can be used to compile and execute a script from theScriptService
based on theScriptType
.Script cache and compilation rate limiter.Tracking compilation rateDeprecated.This class is deprecated in favor of ScriptStats and ScriptContextStats.ScriptContext<FactoryType>The information necessary to compile and run a script.Information about a script contextScript method informationParameter informationStats for a script contextContexts for scripted metric aggregationsBase combination scriptFactory for a scripted metric agg contextBase initialization scriptFactory for a scripted metric agg contextBase map scriptFactory for a scripted metric agg factoryFactory for a scripted metric agg contextBase reduce scriptFactory for a scripted metric agg contextA script language implementation.Exception from a scripting engine.Position dataContains utility methods for compiled scripts without impacting concrete script signaturesThe allowable types, languages and their corresponding contexts.ScriptMetadata
is used to store user-defined scripts as part of theClusterState
using only an id as the key.A builder used to modify the currently stored scripts data held within theClusterState
.Metrics for scriptsManages buildingScriptService
.Service for scriptingStats for scriptsScriptType represents the way a script is stored and retrieved from theScriptService
.A script used in significant terms heuristic scoring.Factory for a significant terms heuristic score scriptA script that is used to buildScriptedSimilarity
instances.Factory for a similarity scriptA script that is used to compute scoring factors that are the same for all documents.Factory for a similarity weight scriptStoredScriptSource
represents user-defined parameters for a script saved in theClusterState
.Script for sorting stringsA factory to construct statefulStringSortScript
factories for a specific index.A factory to constructStringSortScript
instances.A string template rendered as a script.Factory for a template scriptScript for terms set queryA factory to construct statefulTermsSetQueryScript
factories for a specific index.A factory to constructTermsSetQueryScript
instances.An update script.Factory for an update script