Added/updated snippets for docs (#2318)
This commit is contained in:
27
docs/doc_examples/20162e1dac807a7604f58dad814d1bc5.asciidoc
Normal file
27
docs/doc_examples/20162e1dac807a7604f58dad814d1bc5.asciidoc
Normal file
@ -0,0 +1,27 @@
|
||||
// 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: "my-index-000001",
|
||||
settings: {
|
||||
analysis: {
|
||||
analyzer: {
|
||||
en: {
|
||||
tokenizer: "standard",
|
||||
filter: ["my_en_US_dict_stemmer"],
|
||||
},
|
||||
},
|
||||
filter: {
|
||||
my_en_US_dict_stemmer: {
|
||||
type: "hunspell",
|
||||
locale: "en_US",
|
||||
dedup: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user