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/field_caps.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'vendor/gopkg.in/olivere/elastic.v5/field_caps.go') diff --git a/vendor/gopkg.in/olivere/elastic.v5/field_caps.go b/vendor/gopkg.in/olivere/elastic.v5/field_caps.go index 393cd3ce8..78b343370 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/field_caps.go +++ b/vendor/gopkg.in/olivere/elastic.v5/field_caps.go @@ -11,12 +11,12 @@ import ( "net/url" "strings" - "github.com/olivere/elastic/uritemplates" + "gopkg.in/olivere/elastic.v5/uritemplates" ) // FieldCapsService allows retrieving the capabilities of fields among multiple indices. // -// See https://www.elastic.co/guide/en/elasticsearch/reference/6.1/search-field-caps.html +// See http://www.elastic.co/guide/en/elasticsearch/reference/5.x/search-field-caps.html // for details type FieldCapsService struct { client *Client @@ -152,13 +152,7 @@ func (s *FieldCapsService) Do(ctx context.Context) (*FieldCapsResponse, error) { } // Get HTTP response - res, err := s.client.PerformRequest(ctx, PerformRequestOptions{ - Method: "POST", - Path: path, - Params: params, - Body: body, - IgnoreErrors: []int{http.StatusNotFound}, - }) + res, err := s.client.PerformRequest(ctx, "POST", path, params, body, http.StatusNotFound) if err != nil { return nil, err } -- cgit v1.2.3-1-g7c22