Skip to content

Commit

Permalink
Fix rest-api-spec and docs for bulk API
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Dec 11, 2024
1 parent d5589d7 commit 0a5d907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions docs/reference/docs/bulk.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=refresh]
(Optional, Boolean) If `true`, the request's actions must target an index alias.
Defaults to `false`.

`require_data_stream`::
(Optional, Boolean) If `true`, the request's actions must target a data stream (existing or to-be-created).
Defaults to `false`.

include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=routing]

include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=source]
Expand Down
8 changes: 2 additions & 6 deletions rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@
"type":"time",
"description":"Explicit operation timeout"
},
"type":{
"type":"string",
"description":"Default document type for items which don't provide one"
},
"_source":{
"type":"list",
"description":"True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request"
Expand All @@ -78,11 +74,11 @@
},
"require_alias": {
"type": "boolean",
"description": "Sets require_alias for all incoming documents. Defaults to unset (false)"
"description": "If true, the request’s actions must target an index alias. Defaults to false."
},
"require_data_stream": {
"type": "boolean",
"description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false"
"description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false"
},
"list_executed_pipelines": {
"type": "boolean",
Expand Down

0 comments on commit 0a5d907

Please sign in to comment.