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_segments.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'vendor/gopkg.in/olivere/elastic.v5/indices_segments.go') diff --git a/vendor/gopkg.in/olivere/elastic.v5/indices_segments.go b/vendor/gopkg.in/olivere/elastic.v5/indices_segments.go index 133d1101e..80ac3ed0c 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/indices_segments.go +++ b/vendor/gopkg.in/olivere/elastic.v5/indices_segments.go @@ -11,7 +11,7 @@ import ( "net/url" "strings" - "github.com/olivere/elastic/uritemplates" + "gopkg.in/olivere/elastic.v5/uritemplates" ) // IndicesSegmentsService provides low level segments information that a @@ -20,7 +20,7 @@ import ( // optimization information, data "wasted" on deletes, and so on. // // Find further documentation at -// https://www.elastic.co/guide/en/elasticsearch/reference/6.1/indices-segments.html. +// https://www.elastic.co/guide/en/elasticsearch/reference/5.6/indices-segments.html. type IndicesSegmentsService struct { client *Client pretty bool @@ -154,7 +154,7 @@ func (s *IndicesSegmentsService) Do(ctx context.Context) (*IndicesSegmentsRespon } // Get HTTP response - res, err := s.client.PerformRequest(ctx, PerformRequestOptions{ + res, err := s.client.PerformRequestWithOptions(ctx, PerformRequestOptions{ Method: "GET", Path: path, Params: params, @@ -217,16 +217,7 @@ type IndexSegmentsDetails struct { Version string `json:"version,omitempty"` Compound bool `json:"compound,omitempty"` MergeId string `json:"merge_id,omitempty"` - Sort []*IndexSegmentsSort `json:"sort,omitempty"` RAMTree []*IndexSegmentsRamTree `json:"ram_tree,omitempty"` - Attributes map[string]string `json:"attributes,omitempty"` -} - -type IndexSegmentsSort struct { - Field string `json:"field,omitempty"` - Mode string `json:"mode,omitempty"` - Missing interface{} `json:"missing,omitempty"` - Reverse bool `json:"reverse,omitempty"` } type IndexSegmentsRamTree struct { -- cgit v1.2.3-1-g7c22