diff options
Diffstat (limited to 'vendor/gopkg.in/olivere/elastic.v5/indices_put_mapping.go')
-rw-r--r-- | vendor/gopkg.in/olivere/elastic.v5/indices_put_mapping.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/gopkg.in/olivere/elastic.v5/indices_put_mapping.go b/vendor/gopkg.in/olivere/elastic.v5/indices_put_mapping.go index af9704de9..03f26ca91 100644 --- a/vendor/gopkg.in/olivere/elastic.v5/indices_put_mapping.go +++ b/vendor/gopkg.in/olivere/elastic.v5/indices_put_mapping.go @@ -27,7 +27,7 @@ type IndicesPutMappingService struct { ignoreUnavailable *bool allowNoIndices *bool expandWildcards string - ignoreConflicts *bool + updateAllTypes *bool timeout string bodyJson map[string]interface{} bodyString string @@ -94,10 +94,10 @@ func (s *IndicesPutMappingService) ExpandWildcards(expandWildcards string) *Indi return s } -// IgnoreConflicts specifies whether to ignore conflicts while updating -// the mapping (default: false). -func (s *IndicesPutMappingService) IgnoreConflicts(ignoreConflicts bool) *IndicesPutMappingService { - s.ignoreConflicts = &ignoreConflicts +// UpdateAllTypes, if true, indicates that all fields that span multiple indices +// should be updated (default: false). +func (s *IndicesPutMappingService) UpdateAllTypes(updateAllTypes bool) *IndicesPutMappingService { + s.updateAllTypes = &updateAllTypes return s } @@ -153,8 +153,8 @@ func (s *IndicesPutMappingService) buildURL() (string, url.Values, error) { if s.expandWildcards != "" { params.Set("expand_wildcards", s.expandWildcards) } - if s.ignoreConflicts != nil { - params.Set("ignore_conflicts", fmt.Sprintf("%v", *s.ignoreConflicts)) + if s.updateAllTypes != nil { + params.Set("update_all_types", fmt.Sprintf("%v", *s.updateAllTypes)) } if s.timeout != "" { params.Set("timeout", s.timeout) |