Files
elasticsearch-js/docs/doc_examples/4553e0acb6336687d61eaecc73f517b7.asciidoc
2024-07-29 17:10:05 -05:00

27 lines
592 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-000001",
settings: {
analysis: {
analyzer: {
my_analyzer: {
tokenizer: "standard",
char_filter: ["my_mappings_char_filter"],
},
},
char_filter: {
my_mappings_char_filter: {
type: "mapping",
mappings: [":) => _happy_", ":( => _sad_"],
},
},
},
},
});
console.log(response);
----