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)
| 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). |
| 335 | func (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. |
| 342 | func (f Bulk) WithPretty() func(*BulkRequest) { |
no outgoing calls