func NewIndexService(client *Client) *IndexService {
	return &IndexService{
		client: client,
		typ:    "_doc",
	}
}
NewIndexService creates a new IndexService.
package elastic
import (
	"context"
	"fmt"
	"net/http"
	"net/url"
	"strings"
	"github.com/olivere/elastic/v7/uritemplates"
)
type IndexService struct {
	client *Client
	pretty     *bool        
	human      *bool        
	errorTrace *bool        
	filterPath []string     
	headers    http.Header  
	id                  string
	index               string
	typ                 string
	parent              string
	routing             string
	timeout             string
	timestamp           string
	ttl                 string
	version             interface{}
	opType              string
	versionType         string
	refresh             string
	waitForActiveShards string
	pipeline            string
	ifSeqNo             *int64
	ifPrimaryTerm       *int64
	bodyJson            interface{}
	bodyString          string
}