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)
| 63 | // See https://www.elastic.co/guide/en/elasticsearch/reference/7.0/modules-scripting.html |
| 64 | // for details. |
| 65 | func (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. |
| 71 | func (s *Script) Param(name string, value interface{}) *Script { |
no outgoing calls