29 lines
618 B
Plaintext
29 lines
618 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: "test_index",
|
|
mappings: {
|
|
dynamic: "strict",
|
|
properties: {
|
|
description: {
|
|
properties: {
|
|
notes: {
|
|
type: "text",
|
|
copy_to: ["description.notes_raw"],
|
|
analyzer: "standard",
|
|
search_analyzer: "standard",
|
|
},
|
|
notes_raw: {
|
|
type: "keyword",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|