func NewScript(script string) *Script {
	return &Script{
		script: script,
		typ:    "inline",
		params: make(map[string]interface{}),
	}
}
NewScript creates and initializes a new Script.
package elastic
import "errors"
type Script struct {
	script string
	typ    string
	lang   string
	params map[string]interface{}
}