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

37 lines
765 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.updateAliases({
actions: [
{
add: {
index: "my-index-2099.05.06-000001",
alias: "my-alias",
filter: {
bool: {
filter: [
{
range: {
"@timestamp": {
gte: "now-1d/d",
lt: "now/d",
},
},
},
{
term: {
"user.id": "kimchy",
},
},
],
},
},
},
},
],
});
console.log(response);
----