func (s *SearchShardsService) AllowNoIndices(allowNoIndices bool) *SearchShardsService {
	s.allowNoIndices = &allowNoIndices
	return s
}
AllowNoIndices indicates whether to ignore if a wildcard indices
expression resolves into no concrete indices. (This includes `_all` string
or when no indices have been specified).
package elastic
import (
	"context"
	"fmt"
	"net/url"
	"strings"
	"time"
	"github.com/olivere/elastic/uritemplates"
)
type SearchShardsService struct {
	client            *Client
	pretty            bool
	index             []string
	routing           string
	local             *bool
	preference        string
	ignoreUnavailable *bool
	allowNoIndices    *bool
	expandWildcards   string
}
func NewSearchShardsService(client *Client) *SearchShardsService {
	return &SearchShardsService{
		client: client,
	}
}
func (s *SearchShardsService) Index(index ...string) *SearchShardsService {
	s.index = append(s.index, index...)
	return s
}
func (s *SearchShardsService) Local(local bool) *SearchShardsService {
	s.local = &local
	return s
}
func (s *SearchShardsService) Routing(routing string) *SearchShardsService {
	s.routing = routing
	return s
}
func (s *SearchShardsService) Preference(preference string) *SearchShardsService {
	s.preference = preference
	return s
}
func (s *SearchShardsService) Pretty(pretty bool) *SearchShardsService {
	s.pretty = pretty
	return s
}
func (s *SearchShardsService) IgnoreUnavailable(ignoreUnavailable bool) *SearchShardsService {
	s.ignoreUnavailable = &ignoreUnavailable
	return s
}