com.sksamuel.elastic4s.requests.script

Type members

Classlikes

case class DeleteStoredScriptRequest(id: String)
case class DeleteStoredScriptResponse(acknowledged: Boolean)
case class GetStoredScriptRequest(id: String)
case class GetStoredScriptResponse(_id: String, found: Boolean, script: StoredScriptSource)
case class PutStoredScriptRequest(id: String, script: StoredScriptSource)
case class PutStoredScriptResponse(acknowledged: Boolean)
case class Script(script: String, lang: Option[String], scriptType: ScriptType, params: Map[String, Any], options: Map[String, String], paramsRaw: Map[String, String])

A script that can be used in queries (ex: Painless scripting).

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
object Script
Companion:
class
case class ScriptField(field: String, script: Script)
sealed trait ScriptType
Companion:
object
object ScriptType
Companion:
class
case class StoredScriptSource(lang: String, source: String)