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

36 lines
710 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: "index",
settings: {
analysis: {
char_filter: {
quote: {
type: "mapping",
mappings: ['« => "', '» => "'],
},
},
normalizer: {
my_normalizer: {
type: "custom",
char_filter: ["quote"],
filter: ["lowercase", "asciifolding"],
},
},
},
},
mappings: {
properties: {
foo: {
type: "keyword",
normalizer: "my_normalizer",
},
},
},
});
console.log(response);
----