45 lines
989 B
Plaintext
45 lines
989 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: "turkish_example",
|
|
settings: {
|
|
analysis: {
|
|
filter: {
|
|
turkish_stop: {
|
|
type: "stop",
|
|
stopwords: "_turkish_",
|
|
},
|
|
turkish_lowercase: {
|
|
type: "lowercase",
|
|
language: "turkish",
|
|
},
|
|
turkish_keywords: {
|
|
type: "keyword_marker",
|
|
keywords: ["örnek"],
|
|
},
|
|
turkish_stemmer: {
|
|
type: "stemmer",
|
|
language: "turkish",
|
|
},
|
|
},
|
|
analyzer: {
|
|
rebuilt_turkish: {
|
|
tokenizer: "standard",
|
|
filter: [
|
|
"apostrophe",
|
|
"turkish_lowercase",
|
|
"turkish_stop",
|
|
"turkish_keywords",
|
|
"turkish_stemmer",
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|