Auto-generated code for 8.x (#2412)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
31
docs/doc_examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc
Normal file
31
docs/doc_examples/8b8b6aac2111b2d8b93758ac737e6543.asciidoc
Normal file
@ -0,0 +1,31 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.indices.create({
|
||||
index: "idx_keep",
|
||||
settings: {
|
||||
index: {
|
||||
mapping: {
|
||||
source: {
|
||||
mode: "synthetic",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
mappings: {
|
||||
properties: {
|
||||
path: {
|
||||
type: "object",
|
||||
synthetic_source_keep: "all",
|
||||
},
|
||||
ids: {
|
||||
type: "integer",
|
||||
synthetic_source_keep: "arrays",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user