From 6e2cb00008cbf09e556b00f87603797fcaa47e09 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 16 Apr 2018 05:37:14 -0700 Subject: Depenancy upgrades and movign to dep. (#8630) --- vendor/gopkg.in/olivere/elastic.v5/indices_close.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'vendor/gopkg.in/olivere/elastic.v5/indices_close.go') diff --git a/vendor/gopkg.in/olivere/elastic.v5/indices_close.go b/vendor/gopkg.in/olivere/elastic.v5/indices_close.go index 00ecdf966..9388bc973 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/indices_close.go +++ b/vendor/gopkg.in/olivere/elastic.v5/indices_close.go @@ -9,12 +9,12 @@ import ( "fmt" "net/url" - "github.com/olivere/elastic/uritemplates" + "gopkg.in/olivere/elastic.v5/uritemplates" ) // IndicesCloseService closes an index. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/6.0/indices-open-close.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/5.2/indices-open-close.html // for details. type IndicesCloseService struct { client *Client @@ -134,11 +134,7 @@ func (s *IndicesCloseService) Do(ctx context.Context) (*IndicesCloseResponse, er } // Get HTTP response - res, err := s.client.PerformRequest(ctx, PerformRequestOptions{ - Method: "POST", - Path: path, - Params: params, - }) + res, err := s.client.PerformRequest(ctx, "POST", path, params, nil) if err != nil { return nil, err } @@ -153,7 +149,5 @@ func (s *IndicesCloseService) Do(ctx context.Context) (*IndicesCloseResponse, er // IndicesCloseResponse is the response of IndicesCloseService.Do. type IndicesCloseResponse struct { - Acknowledged bool `json:"acknowledged"` - ShardsAcknowledged bool `json:"shards_acknowledged"` - Index string `json:"index,omitempty"` + Acknowledged bool `json:"acknowledged"` } -- cgit v1.2.3-1-g7c22