Skip to content

Commit 9317319

Browse files
authored
Adding the merge_type param to the ingest simulate API (#5140)
1 parent 23f9644 commit 9317319

File tree

4 files changed

+49
-1
lines changed

4 files changed

+49
-1
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/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/_json_spec/simulate.ingest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"pipeline": {
3333
"type": "string",
3434
"description": "The pipeline id to preprocess incoming documents with if no pipeline is given for a particular document"
35+
},
36+
"merge_type": {
37+
"type": "string",
38+
"description": "The method to be used when merging mapping_additions existing mappings"
3539
}
3640
},
3741
"body": {

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 method to be used when merging mapping_additions existing mappings. Mappings can be merged 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)