Skip to content

Commit c0b2ef5

Browse files
committed
Docs: Explain _bulk?refresh shard targeting
Only the shards that receive the bulk request will be affected by `refresh`. Imagine a `_bulk?refresh=wait_for` request with three documents in it that happen to be routed to different shards in an index with five shards. The request will only wait for those three shards to refresh. The other two shards of that make up the index do not participate in the `_bulk` request at all. Relates to #31819
1 parent 94d3ddd commit c0b2ef5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/reference/docs/bulk.asciidoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ example.
230230
Control when the changes made by this request are visible to search. See
231231
<<docs-refresh,refresh>>.
232232

233+
NOTE: Only the shards that receive the bulk request will be affected by
234+
`refresh`. Imagine a `_bulk?refresh=wait_for` request with three
235+
documents in it that happen to be routed to different shards in an index
236+
with five shards. The request will only wait for those three shards to
237+
refresh. The other two shards of that make up the index do not
238+
participate in the `_bulk` request at all.
239+
233240
[float]
234241
[[bulk-update]]
235242
=== Update

0 commit comments

Comments
 (0)