27 lines
552 B
Plaintext
27 lines
552 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: "thai_example",
|
|
settings: {
|
|
analysis: {
|
|
filter: {
|
|
thai_stop: {
|
|
type: "stop",
|
|
stopwords: "_thai_",
|
|
},
|
|
},
|
|
analyzer: {
|
|
rebuilt_thai: {
|
|
tokenizer: "thai",
|
|
filter: ["lowercase", "decimal_digit", "thai_stop"],
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|