func NewIndicesSegmentsService(client *Client) *IndicesSegmentsService {
	return &IndicesSegmentsService{
		client: client,
	}
}
NewIndicesSegmentsService creates a new IndicesSegmentsService.
package elastic
import (
	"context"
	"encoding/json"
	"fmt"
	"net/url"
	"strings"
	"github.com/olivere/elastic/uritemplates"
)
type IndicesSegmentsService struct {
	client             *Client
	pretty             bool
	index              []string
	allowNoIndices     *bool
	expandWildcards    string
	ignoreUnavailable  *bool
	human              *bool
	operationThreading interface{}
	verbose            *bool
}