Skip to content

Commit 0b94d9f

Browse files
committed
Adding the merge_type param to the ingest simulate API
1 parent 23f9644 commit 0b94d9f

File tree

4 files changed

+53
-2
lines changed

4 files changed

+53
-2
lines changed

output/schema/schema.json

Lines changed: 30 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"endpointErrors": {},
2+
"endpointErrors": {
3+
"simulate.ingest": {
4+
"request": [
5+
"Request: query parameter 'merge_type' does not exist in the json spec"
6+
],
7+
"response": []
8+
}
9+
},
310
"generalErrors": [
411
"Dangling type '_global.scripts_painless_execute:PainlessExecutionPosition'",
512
"Dangling type '_global.scripts_painless_execute:PainlessScript'",

output/typescript/types.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/simulate/ingest/SimulateIngestRequest.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ export interface Request extends RequestBase {
7575
* This value can be used to override the default pipeline of the index.
7676
*/
7777
pipeline?: PipelineName
78+
/**
79+
* The way that mapping_additions ought to be merged into existing mappings -- in the way mapping changes are merged into an existing index, or in
80+
* the way mapping changes are merged into existing templates. Some changes are allowed to templates that are not allowed to indices. For example,
81+
* a field cannot be changed to an incompatible type in an index, but can in a template.
82+
* @server_default index
83+
*/
84+
merge_type?: MergeType
7885
}
7986
body: {
8087
/**
@@ -98,3 +105,8 @@ export interface Request extends RequestBase {
98105
pipeline_substitutions?: Dictionary<string, Pipeline>
99106
}
100107
}
108+
109+
enum MergeType {
110+
index,
111+
template
112+
}

0 commit comments

Comments
 (0)