func (b *UpdateService) Script(script *Script) *UpdateService {
	b.script = script
	return b
}
Script is the script definition.
package elastic
import (
	"fmt"
	"net/url"
	"strings"
	"gopkg.in/olivere/elastic.v3/uritemplates"
)
type UpdateService struct {
	client           *Client
	index            string
	typ              string
	id               string
	routing          string
	parent           string
	script           *Script
	fields           []string
	version          *int64
	versionType      string
	retryOnConflict  *int
	refresh          *bool
	replicationType  string
	consistencyLevel string
	upsert           interface{}
	scriptedUpsert   *bool
	docAsUpsert      *bool
	detectNoop       *bool
	doc              interface{}
	timeout          string
	pretty           bool
}
func NewUpdateService(client *Client) *UpdateService {
	builder := &UpdateService{
		client: client,
		fields: make([]string, 0),
	}
	return builder
}
func (b *UpdateService) Index(name string) *UpdateService {
	b.index = name
	return b
}
func (b *UpdateService) Type(typ string) *UpdateService {
	b.typ = typ
	return b
}
func (b *UpdateService) Id(id string) *UpdateService {
	b.id = id
	return b
}
func (b *UpdateService) Routing(routing string) *UpdateService {
	b.routing = routing
	return b
}
func (b *UpdateService) Parent(parent string) *UpdateService {
	b.parent = parent
	return b
}