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

42 lines
912 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: "arabic_example",
settings: {
analysis: {
filter: {
arabic_stop: {
type: "stop",
stopwords: "_arabic_",
},
arabic_keywords: {
type: "keyword_marker",
keywords: ["مثال"],
},
arabic_stemmer: {
type: "stemmer",
language: "arabic",
},
},
analyzer: {
rebuilt_arabic: {
tokenizer: "standard",
filter: [
"lowercase",
"decimal_digit",
"arabic_stop",
"arabic_normalization",
"arabic_keywords",
"arabic_stemmer",
],
},
},
},
},
});
console.log(response);
----