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
AggregationScriptfactories for a specific index.A factory to constructAggregationScriptinstances.A script used in bucket aggregations that returns adoublevalue.A script used in bucket aggregations that returns abooleanvalue.used byScriptSortBuilderto refer to classes in x-pack (eg.A factory to construct statefulBytesRefSortScriptfactories for a specific index.A factory to constructBytesRefSortScriptinstances.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 scriptfieldapi anddocAPI.A custom script that can be used for various DoubleValue Lucene operations.A factory to constructDoubleValuesScriptinstances.DynamicMap is used to wrap a Map for a script parameter.To be implemented byScoreScriptwhich can provided anExplanationof 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 constructFieldScriptinstances.A script implementation of a query filter.A factory to construct statefulFilterScriptfactories for a specific index.A factory to constructFilterScriptinstances.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 statefulNumberSortScriptfactories for a specific index.A factory to constructNumberSortScriptinstances.Metadata for theReindexScriptcontext.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 anExplanationA factory to construct statefulScoreScriptfactories for a specific index.A factory to constructScoreScriptinstances.Scriptrepresents used-defined input that can be used to compile and execute a script from theScriptServicebased 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.ScriptMetadatais used to store user-defined scripts as part of theClusterStateusing 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 buildScriptedSimilarityinstances.A script that is used to compute scoring factors that are the same for all documents.TheStatsSummaryclass accumulates statistical data for a sequence of double values.StoredScriptSourcerepresents user-defined parameters for a script saved in theClusterState.A factory to construct statefulStringSortScriptfactories for a specific index.A factory to constructStringSortScriptinstances.A string template rendered as a script.A factory to construct statefulTermsSetQueryScriptfactories for a specific index.A factory to constructTermsSetQueryScriptinstances.A response class representing a snapshot of aTimeSeriesCounterat a point in time.Provides a counter with a history of 5m/15m/24h.Metadata for theUpdateByQueryMetadatacontext.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.