Added/updated snippets for docs (#2318)
This commit is contained in:
33
docs/doc_examples/6c3f7c8601e8cc13d36eef98a5e2cb34.asciidoc
Normal file
33
docs/doc_examples/6c3f7c8601e8cc13d36eef98a5e2cb34.asciidoc
Normal file
@ -0,0 +1,33 @@
|
||||
// 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: "drivers",
|
||||
mappings: {
|
||||
properties: {
|
||||
driver: {
|
||||
type: "nested",
|
||||
properties: {
|
||||
last_name: {
|
||||
type: "text",
|
||||
},
|
||||
vehicle: {
|
||||
type: "nested",
|
||||
properties: {
|
||||
make: {
|
||||
type: "text",
|
||||
},
|
||||
model: {
|
||||
type: "text",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user