MCPcopy Create free account
hub / github.com/olivere/elastic / Lang

Method Lang

script.go:65–68  ·  view source on GitHub ↗

Lang sets the language of the script. The default scripting language is Painless ("painless"). See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html for details.

(lang string)

Source from the content-addressed store, hash-verified

63// See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html
64// for details.
65func (s *Script) Lang(lang string) *Script {
66 s.lang = lang
67 return s
68}
69
70// Param adds a key/value pair to the parameters that this script will be executed with.
71func (s *Script) Param(name string, value interface{}) *Script {

Calls

no outgoing calls