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

28 lines
583 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: "length_custom_example",
settings: {
analysis: {
analyzer: {
whitespace_length_2_to_10_char: {
tokenizer: "whitespace",
filter: ["length_2_to_10_char"],
},
},
filter: {
length_2_to_10_char: {
type: "length",
min: 2,
max: 10,
},
},
},
},
});
console.log(response);
----