(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
27 lines
566 B
Plaintext
27 lines
566 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: "asciifold_example",
|
|
settings: {
|
|
analysis: {
|
|
analyzer: {
|
|
standard_asciifolding: {
|
|
tokenizer: "standard",
|
|
filter: ["my_ascii_folding"],
|
|
},
|
|
},
|
|
filter: {
|
|
my_ascii_folding: {
|
|
type: "asciifolding",
|
|
preserve_original: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|