func (s *IndicesDeleteWarmerService) buildURL() (string, url.Values, error) {
	path, err := uritemplates.Expand("/{index}/_warmer/{name}", map[string]string{
		"index": strings.Join(s.index, ","),
		"name":  strings.Join(s.name, ","),
	})
	if err != nil {
		return "", url.Values{}, err
	}
	params := url.Values{}
	if s.pretty {
		params.Set("pretty", "1")
	}
	if s.masterTimeout != "" {
		params.Set("master_timeout", s.masterTimeout)
	}
	if len(s.name) > 0 {
		params.Set("name", strings.Join(s.name, ","))
	}
	return path, params, nil
}
buildURL builds the URL for the operation.
package elastic
import (
	"fmt"
	"net/url"
	"strings"
	"gopkg.in/olivere/elastic.v3/uritemplates"
)
type IndicesDeleteWarmerService struct {
	client        *Client
	pretty        bool
	index         []string
	name          []string
	masterTimeout string
}
func NewIndicesDeleteWarmerService(client *Client) *IndicesDeleteWarmerService {
	return &IndicesDeleteWarmerService{
		client: client,
		index:  make([]string, 0),
		name:   make([]string, 0),
	}
}
func (s *IndicesDeleteWarmerService) Index(indices ...string) *IndicesDeleteWarmerService {
	s.index = append(s.index, indices...)
	return s
}
func (s *IndicesDeleteWarmerService) Name(name ...string) *IndicesDeleteWarmerService {
	s.name = append(s.name, name...)
	return s
}
func (s *IndicesDeleteWarmerService) MasterTimeout(masterTimeout string) *IndicesDeleteWarmerService {
	s.masterTimeout = masterTimeout
	return s
}
func (s *IndicesDeleteWarmerService) Pretty(pretty bool) *IndicesDeleteWarmerService {
	s.pretty = pretty
	return s
}