Added/updated snippets for docs (#2318)
This commit is contained in:
22
docs/doc_examples/083e514297c09e91211f0d168aef1b0b.asciidoc
Normal file
22
docs/doc_examples/083e514297c09e91211f0d168aef1b0b.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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.updateByQuery({
|
||||
index: "logs-generic-default",
|
||||
query: {
|
||||
match: {
|
||||
"event.sequence": "97",
|
||||
},
|
||||
},
|
||||
script: {
|
||||
source: "ctx._source.event.original = params.new_event",
|
||||
lang: "painless",
|
||||
params: {
|
||||
new_event: "FOOBAR",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user