33 lines
644 B
Plaintext
33 lines
644 B
Plaintext
// 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: "my-index-000002",
|
|
mappings: {
|
|
properties: {
|
|
attributes: {
|
|
type: "passthrough",
|
|
priority: 10,
|
|
properties: {
|
|
id: {
|
|
type: "keyword",
|
|
},
|
|
},
|
|
},
|
|
"resource.attributes": {
|
|
type: "passthrough",
|
|
priority: 20,
|
|
properties: {
|
|
id: {
|
|
type: "keyword",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|