42 lines
912 B
Plaintext
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);
|
|
----
|