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

29 lines
762 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: "hyphenation_decompound_example",
settings: {
analysis: {
analyzer: {
standard_hyphenation_decompound: {
tokenizer: "standard",
filter: ["22_char_hyphenation_decompound"],
},
},
filter: {
"22_char_hyphenation_decompound": {
type: "hyphenation_decompounder",
word_list_path: "analysis/example_word_list.txt",
hyphenation_patterns_path: "analysis/hyphenation_patterns.xml",
max_subword_size: 22,
},
},
},
},
});
console.log(response);
----