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

Method Script

script.go:50–53  ·  view source on GitHub ↗

Script is either the cache key of the script to be compiled/executed or the actual script source code for inline scripts. For indexed scripts this is the id used in the request. For file scripts this is the file name.

(script string)

Source from the content-addressed store, hash-verified

48// scripts this is the id used in the request. For file scripts this is
49// the file name.
50func (s *Script) Script(script string) *Script {
51 s.script = script
52 return s
53}
54
55// Type sets the type of script: "inline" or "id".
56func (s *Script) Type(typ string) *Script {

Calls

no outgoing calls