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

40 lines
856 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: "swedish_example",
settings: {
analysis: {
filter: {
swedish_stop: {
type: "stop",
stopwords: "_swedish_",
},
swedish_keywords: {
type: "keyword_marker",
keywords: ["exempel"],
},
swedish_stemmer: {
type: "stemmer",
language: "swedish",
},
},
analyzer: {
rebuilt_swedish: {
tokenizer: "standard",
filter: [
"lowercase",
"swedish_stop",
"swedish_keywords",
"swedish_stemmer",
],
},
},
},
},
});
console.log(response);
----