(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
68 lines
1.4 KiB
Plaintext
68 lines
1.4 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: "italian_example",
|
|
settings: {
|
|
analysis: {
|
|
filter: {
|
|
italian_elision: {
|
|
type: "elision",
|
|
articles: [
|
|
"c",
|
|
"l",
|
|
"all",
|
|
"dall",
|
|
"dell",
|
|
"nell",
|
|
"sull",
|
|
"coll",
|
|
"pell",
|
|
"gl",
|
|
"agl",
|
|
"dagl",
|
|
"degl",
|
|
"negl",
|
|
"sugl",
|
|
"un",
|
|
"m",
|
|
"t",
|
|
"s",
|
|
"v",
|
|
"d",
|
|
],
|
|
articles_case: true,
|
|
},
|
|
italian_stop: {
|
|
type: "stop",
|
|
stopwords: "_italian_",
|
|
},
|
|
italian_keywords: {
|
|
type: "keyword_marker",
|
|
keywords: ["esempio"],
|
|
},
|
|
italian_stemmer: {
|
|
type: "stemmer",
|
|
language: "light_italian",
|
|
},
|
|
},
|
|
analyzer: {
|
|
rebuilt_italian: {
|
|
tokenizer: "standard",
|
|
filter: [
|
|
"italian_elision",
|
|
"lowercase",
|
|
"italian_stop",
|
|
"italian_keywords",
|
|
"italian_stemmer",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|