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

63 lines
1.2 KiB
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: "cjk_example",
settings: {
analysis: {
filter: {
english_stop: {
type: "stop",
stopwords: [
"a",
"and",
"are",
"as",
"at",
"be",
"but",
"by",
"for",
"if",
"in",
"into",
"is",
"it",
"no",
"not",
"of",
"on",
"or",
"s",
"such",
"t",
"that",
"the",
"their",
"then",
"there",
"these",
"they",
"this",
"to",
"was",
"will",
"with",
"www",
],
},
},
analyzer: {
rebuilt_cjk: {
tokenizer: "standard",
filter: ["cjk_width", "lowercase", "cjk_bigram", "english_stop"],
},
},
},
},
});
console.log(response);
----