Added/updated snippets for docs (#2318)
This commit is contained in:
18
docs/doc_examples/2ee002e60bd7a38d466e5f0eb0c38946.asciidoc
Normal file
18
docs/doc_examples/2ee002e60bd7a38d466e5f0eb0c38946.asciidoc
Normal file
@ -0,0 +1,18 @@
|
||||
// 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.updateAliases({
|
||||
actions: [
|
||||
{
|
||||
add: {
|
||||
index: "my-index-2099.05.06-000001",
|
||||
alias: "my-alias",
|
||||
routing: "1",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user