36 lines
710 B
Plaintext
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);
|
|
----
|