diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/indices_refresh.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/indices_refresh.go | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/indices_refresh.go b/vendor/gopkg.in/olivere/elastic.v5/indices_refresh.go index 79324d75f..dbc83ac2c 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/indices_refresh.go +++ b/vendor/gopkg.in/olivere/elastic.v5/indices_refresh.go @@ -14,11 +14,10 @@ import ( ) // RefreshService explicitly refreshes one or more indices. -// See https://www.elastic.co/guide/en/elasticsearch/reference/5.2/indices-refresh.html. +// See https://www.elastic.co/guide/en/elasticsearch/reference/5.6/indices-refresh.html. type RefreshService struct { client *Client index []string - force *bool pretty bool } @@ -36,12 +35,6 @@ func (s *RefreshService) Index(index ...string) *RefreshService { return s } -// Force forces a refresh. -func (s *RefreshService) Force(force bool) *RefreshService { - s.force = &force - return s -} - // Pretty asks Elasticsearch to return indented JSON. func (s *RefreshService) Pretty(pretty bool) *RefreshService { s.pretty = pretty @@ -66,9 +59,6 @@ func (s *RefreshService) buildURL() (string, url.Values, error) { // Add query string parameters params := url.Values{} - if s.force != nil { - params.Set("force", fmt.Sprintf("%v", *s.force)) - } if s.pretty { params.Set("pretty", fmt.Sprintf("%v", s.pretty)) } |