Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions specification/_json_spec/simulate.ingest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
"pipeline": {
"type": "string",
"description": "The pipeline id to preprocess incoming documents with if no pipeline is given for a particular document"
},
"merge_type": {
"type": "string",
"description": "The way that mapping_additions ought to be merged into existing mappings"
}
},
"body": {
Expand Down
12 changes: 12 additions & 0 deletions specification/simulate/ingest/SimulateIngestRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ export interface Request extends RequestBase {
* This value can be used to override the default pipeline of the index.
*/
pipeline?: PipelineName
/**
* 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
* the way mapping changes are merged into existing templates. Some changes are allowed to templates that are not allowed to indices. For example,
* a field cannot be changed to an incompatible type in an index, but can in a template.
* @server_default index
*/
merge_type?: MergeType
}
body: {
/**
Expand All @@ -98,3 +105,8 @@ export interface Request extends RequestBase {
pipeline_substitutions?: Dictionary<string, Pipeline>
}
}

enum MergeType {
index,
template
}
Loading