Skip to content

Commit a9e50ee

Browse files
committed
Add include_source_on_error for bulk, create, index, update
1 parent 94e5ff9 commit a9e50ee

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

specification/_json_spec/bulk.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@
7373
"list_executed_pipelines": {
7474
"type": "boolean",
7575
"description": "Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)"
76+
},
77+
"include_source_on_error": {
78+
"type": "boolean",
79+
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
7680
}
7781
},
7882
"body": {

specification/_json_spec/create.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
"pipeline": {
5959
"type": "string",
6060
"description": "The pipeline id to preprocess incoming documents with"
61+
},
62+
"include_source_on_error": {
63+
"type": "boolean",
64+
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
6165
}
6266
},
6367
"body": {

specification/_json_spec/index.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@
8989
"require_data_stream": {
9090
"type": "boolean",
9191
"description": "When true, requires the destination to be a data stream (existing or to-be-created). Default is false"
92+
},
93+
"include_source_on_error": {
94+
"type": "boolean",
95+
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
9296
}
9397
},
9498
"body": {

specification/_json_spec/update.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@
7777
"require_alias": {
7878
"type": "boolean",
7979
"description": "When true, requires destination is an alias. Default is false"
80+
},
81+
"include_source_on_error": {
82+
"type": "boolean",
83+
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
8084
}
8185
},
8286
"body": {

0 commit comments

Comments
 (0)