diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/indices_get_settings.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/indices_get_settings.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/indices_get_settings.go b/vendor/gopkg.in/olivere/elastic.v5/indices_get_settings.go index 06fce0dfa..0e8f28d70 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/indices_get_settings.go +++ b/vendor/gopkg.in/olivere/elastic.v5/indices_get_settings.go @@ -10,13 +10,13 @@ import ( "net/url" "strings" - "github.com/olivere/elastic/uritemplates" + "gopkg.in/olivere/elastic.v5/uritemplates" ) // IndicesGetSettingsService allows to retrieve settings of one // or more indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/6.0/indices-get-settings.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/5.2/indices-get-settings.html // for more details. type IndicesGetSettingsService struct { client *Client @@ -125,7 +125,7 @@ func (s *IndicesGetSettingsService) buildURL() (string, url.Values, error) { // Add query string parameters params := url.Values{} if s.pretty { - params.Set("pretty", "true") + params.Set("pretty", "1") } if s.ignoreUnavailable != nil { params.Set("ignore_unavailable", fmt.Sprintf("%v", *s.ignoreUnavailable)) @@ -164,11 +164,7 @@ func (s *IndicesGetSettingsService) Do(ctx context.Context) (map[string]*Indices } // Get HTTP response - res, err := s.client.PerformRequest(ctx, PerformRequestOptions{ - Method: "GET", - Path: path, - Params: params, - }) + res, err := s.client.PerformRequest(ctx, "GET", path, params, nil) if err != nil { return nil, err } |