A script that can be used in queries (ex: Painless scripting).
- Value parameters:
- lang
the language of the script (defaults to Painless)
- options
the options for this script
- params
the parameters of the script which will be automatically-serialized
- paramsRaw
the parameters of the script which are already serialized
- script
the script source
- scriptType
the type of script (see ScriptType.Source)
- Companion:
- object
Value members
Concrete methods
Sets a parameter that will be automatically-serialized before sending to Elasticsearch.
Sets a parameter that will be automatically-serialized before sending to Elasticsearch.
- Value parameters:
- name
the parameter key
- value
the parameter value as a primitive type (Double, BigInt, Seq, Map, etc.); for all the primitive types supported, see com.sksamuel.elastic4s.json.XContentBuilder#autofield; for sending objects, see paramRaw and paramObject
Sets a parameter with an object value, which is serialized with the given implicit serializer.
Sets a parameter with an object value, which is serialized with the given implicit serializer.
- Type parameters:
- T
object's type
- Value parameters:
- name
the parameter key
- serializer
the parameter serializer (see ParamSerializer)
- value
the parameter value
Sets an already-serialized parameter.
Sets an already-serialized parameter.
- Value parameters:
- name
the parameter key
- value
the parameter serialized value as a string