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

40 lines
885 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: "indonesian_example",
settings: {
analysis: {
filter: {
indonesian_stop: {
type: "stop",
stopwords: "_indonesian_",
},
indonesian_keywords: {
type: "keyword_marker",
keywords: ["contoh"],
},
indonesian_stemmer: {
type: "stemmer",
language: "indonesian",
},
},
analyzer: {
rebuilt_indonesian: {
tokenizer: "standard",
filter: [
"lowercase",
"indonesian_stop",
"indonesian_keywords",
"indonesian_stemmer",
],
},
},
},
},
});
console.log(response);
----