Module org.elasticsearch.server
Package org.elasticsearch.script
package org.elasticsearch.script
Support for running user provided scripts (in the request, in cluster state, etc) in portions of various requests
(
FunctionScoreQuery
, Aggregation
,
TransportUpdateAction
, etc). Pluggable via implementing
ScriptPlugin
.-
ClassDescriptionAbstract base for scripts to execute to build scripted fields.Common base class for script field scripts that return long values.A 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.A script used in bucket aggregations that returns aboolean
value.used byScriptSortBuilder
to refer to classes in x-pack (eg.A factory to construct statefulBytesRefSortScript
factories for a specific index.A factory to constructBytesRefSortScript
instances.Checked by scripting engines to allow loading a java class.A script that emits a map of multiple values, that can then be accessed by child runtime fields.A scripting ctx map with metadata for write ingest contexts.Temporary parse method that takes into account the date format.Access the document in a script, provides both old-style, doc['fieldname'], and new style field('fieldname') access to the fields.Provide access to DocValues for scriptfield
api anddoc
API.A custom script that can be used for various DoubleValue Lucene operations.A factory to constructDoubleValuesScript
instances.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 elasticsearch but it is used, see for example here: https://github.com/elastic/elasticsearch/issues/8561A script to produce dynamic values for return fields.A 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.Script producing geometries.Script producing geo points.A script used byConditionalProcessor
.A script used by the Ingest Script Processor.Script producing IP addresses.Provides direct access to a LeafReaderContextIngest and update metadata available to write scripts.The properties of a metadata field.The operation being performed on the value in the map.A factory to construct statefulNumberSortScript
factories for a specific index.A factory to constructNumberSortScript
instances.Metadata for theReindexScript
context.A script used in the reindex apiA 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.Script
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.Takes a Script definition and returns a compiled script factoryScriptContext<FactoryType>The information necessary to compile and run a script.Record object that holds stats information for the different script contexts in a node.A script language implementation.Exception from a scripting engine.Contains 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
.Manages buildingScriptService
.Collect settings related to script context and general caches.Record object that holds global statistics of the scripts in a node.Access the term statistics of the children query of a script_score query.ScriptType represents the way a script is stored and retrieved from theScriptService
.A script used in significant terms heuristic scoring.A script that is used to buildScriptedSimilarity
instances.A script that is used to compute scoring factors that are the same for all documents.TheStatsSummary
class accumulates statistical data for a sequence of double values.StoredScriptSource
represents user-defined parameters for a script saved in theClusterState
.A factory to construct statefulStringSortScript
factories for a specific index.A factory to constructStringSortScript
instances.A string template rendered as a script.A factory to construct statefulTermsSetQueryScript
factories for a specific index.A factory to constructTermsSetQueryScript
instances.A response class representing a snapshot of aTimeSeriesCounter
at a point in time.Provides a counter with a history of 5m/15m/24h.Metadata for theUpdateByQueryMetadata
context.A script used by the update by query apiSource and metadata for update (as opposed to insert via upsert) in the Update context.The update context has read-only metadata: _index, _id, _version, _routing, _type (always '_doc'), _now (timestamp in millis) and read-write op that may be one of 'noop' or 'none' (legacy), 'index', 'delete' or nullA script used in the update APIMetadata for insert via upsert in the Update contextAbstract base class for scripts that write documents.