diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/ingest_get_pipeline.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/ingest_get_pipeline.go | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/ingest_get_pipeline.go b/vendor/gopkg.in/olivere/elastic.v5/ingest_get_pipeline.go index 9a3357d7f..16a683261 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/ingest_get_pipeline.go +++ b/vendor/gopkg.in/olivere/elastic.v5/ingest_get_pipeline.go @@ -10,11 +10,11 @@ import ( "net/url" "strings" - "gopkg.in/olivere/elastic.v5/uritemplates" + "github.com/olivere/elastic/uritemplates" ) // IngestGetPipelineService returns pipelines based on ID. -// See https://www.elastic.co/guide/en/elasticsearch/reference/5.2/get-pipeline-api.html +// See https://www.elastic.co/guide/en/elasticsearch/reference/6.0/get-pipeline-api.html // for documentation. type IngestGetPipelineService struct { client *Client @@ -68,7 +68,7 @@ func (s *IngestGetPipelineService) buildURL() (string, url.Values, error) { // Add query string parameters params := url.Values{} if s.pretty { - params.Set("pretty", "1") + params.Set("pretty", "true") } if s.masterTimeout != "" { params.Set("master_timeout", s.masterTimeout) @@ -95,7 +95,11 @@ func (s *IngestGetPipelineService) Do(ctx context.Context) (IngestGetPipelineRes } // Get HTTP response - res, err := s.client.PerformRequest(ctx, "GET", path, params, nil) + res, err := s.client.PerformRequest(ctx, PerformRequestOptions{ + Method: "GET", + Path: path, + Params: params, + }) if err != nil { return nil, err } |