MCPcopy
hub / github.com/elastic/go-elasticsearch / WithWaitForActiveShards

Method WithWaitForActiveShards

esapi/api.bulk.go:335–339  ·  view source on GitHub ↗

WithWaitForActiveShards - sets the number of shard copies that must be active before proceeding with the bulk operation. defaults to 1, meaning the primary shard only. set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the

(v string)

Source from the content-addressed store, hash-verified

333
334// WithWaitForActiveShards - sets the number of shard copies that must be active before proceeding with the bulk operation. defaults to 1, meaning the primary shard only. set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1).
335func (f Bulk) WithWaitForActiveShards(v string) func(*BulkRequest) {
336 return func(r *BulkRequest) {
337 r.WaitForActiveShards = v
338 }
339}
340
341// WithPretty makes the response body pretty-printed.
342func (f Bulk) WithPretty() func(*BulkRequest) {

Callers 5

mainFunction · 0.45
setupMethod · 0.45
initFunction · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by 1