func (s *IndexService) Pretty(pretty bool) *IndexService {
	s.pretty = pretty
	return s
}
Pretty indicates that the JSON response be indented and human readable.
package elastic
import (
	"fmt"
	"net/url"
	"gopkg.in/olivere/elastic.v3/uritemplates"
)
type IndexService struct {
	client      *Client
	pretty      bool
	id          string
	index       string
	typ         string
	parent      string
	replication string
	routing     string
	timeout     string
	timestamp   string
	ttl         string
	version     interface{}
	opType      string
	versionType string
	refresh     *bool
	consistency string
	bodyJson    interface{}
	bodyString  string
}
func NewIndexService(client *Client) *IndexService {
	return &IndexService{
		client: client,
	}
}
func (s *IndexService) Id(id string) *IndexService {
	s.id = id
	return s
}
func (s *IndexService) Index(index string) *IndexService {
	s.index = index
	return s
}
func (s *IndexService) Type(typ string) *IndexService {
	s.typ = typ
	return s
}
func (s *IndexService) Consistency(consistency string) *IndexService {
	s.consistency = consistency
	return s
}
func (s *IndexService) Refresh(refresh bool) *IndexService {
	s.refresh = &refresh
	return s
}
func (s *IndexService) Ttl(ttl string) *IndexService {
	s.ttl = ttl
	return s
}
func (s *IndexService) TTL(ttl string) *IndexService {
	s.ttl = ttl
	return s
}
func (s *IndexService) Version(version interface{}) *IndexService {
	s.version = version
	return s
}
func (s *IndexService) OpType(opType string) *IndexService {
	s.opType = opType
	return s
}
func (s *IndexService) Parent(parent string) *IndexService {
	s.parent = parent
	return s
}
func (s *IndexService) Replication(replication string) *IndexService {
	s.replication = replication
	return s
}
func (s *IndexService) Routing(routing string) *IndexService {
	s.routing = routing
	return s
}
func (s *IndexService) Timeout(timeout string) *IndexService {
	s.timeout = timeout
	return s
}
func (s *IndexService) Timestamp(timestamp string) *IndexService {
	s.timestamp = timestamp
	return s
}
func (s *IndexService) VersionType(versionType string) *IndexService {
	s.versionType = versionType
	return s
}