Files
elasticsearch-js/docs/doc_examples/2fd69fb0538e4f36ac69a8b8f8bf5ae8.asciidoc
2020-06-26 09:24:14 +02:00

23 lines
396 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.updateByQuery({
index: 'twitter',
body: {
script: {
source: 'ctx._source.likes++',
lang: 'painless'
},
query: {
term: {
user: 'kimchy'
}
}
}
})
console.log(response)
----