Skip to content

Commit 504063c

Browse files
dmeissdanielmitterdorfer
authored andcommitted
Edits to text in Bulk API doc (#39083)
1 parent b958ebd commit 504063c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/reference/docs/bulk.asciidoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ optional_source\n
3636
--------------------------------------------------
3737
// NOTCONSOLE
3838

39-
*NOTE*: the final line of data must end with a newline character `\n`. Each newline character
39+
*NOTE*: The final line of data must end with a newline character `\n`. Each newline character
4040
may be preceded by a carriage return `\r`. When sending requests to this endpoint the
4141
`Content-Type` header should be set to `application/x-ndjson`.
4242

43-
The possible actions are `index`, `create`, `delete` and `update`.
43+
The possible actions are `index`, `create`, `delete`, and `update`.
4444
`index` and `create` expect a source on the next
4545
line, and have the same semantics as the `op_type` parameter to the
4646
standard index API (i.e. create will fail if a document with the same
@@ -215,7 +215,7 @@ documents. See <<optimistic-concurrency-control>> for more details.
215215
Each bulk item can include the version value using the
216216
`version` field. It automatically follows the behavior of the
217217
index / delete operation based on the `_version` mapping. It also
218-
support the `version_type` (see <<index-versioning, versioning>>)
218+
support the `version_type` (see <<index-versioning, versioning>>).
219219

220220
[float]
221221
[[bulk-routing]]
@@ -246,20 +246,20 @@ NOTE: Only the shards that receive the bulk request will be affected by
246246
`refresh`. Imagine a `_bulk?refresh=wait_for` request with three
247247
documents in it that happen to be routed to different shards in an index
248248
with five shards. The request will only wait for those three shards to
249-
refresh. The other two shards of that make up the index do not
249+
refresh. The other two shards that make up the index do not
250250
participate in the `_bulk` request at all.
251251

252252
[float]
253253
[[bulk-update]]
254254
=== Update
255255

256-
When using `update` action `retry_on_conflict` can be used as field in
256+
When using the `update` action, `retry_on_conflict` can be used as a field in
257257
the action itself (not in the extra payload line), to specify how many
258258
times an update should be retried in the case of a version conflict.
259259

260-
The `update` action payload, supports the following options: `doc`
260+
The `update` action payload supports the following options: `doc`
261261
(partial document), `upsert`, `doc_as_upsert`, `script`, `params` (for
262-
script), `lang` (for script) and `_source`. See update documentation for details on
262+
script), `lang` (for script), and `_source`. See update documentation for details on
263263
the options. Example with update actions:
264264

265265
[source,js]
@@ -283,4 +283,4 @@ POST _bulk
283283
[[bulk-security]]
284284
=== Security
285285

286-
See <<url-access-control>>
286+
See <<url-access-control>>.

0 commit comments

Comments
 (0)