Files
elasticsearch-js/docs/doc_examples/a49169b4622918992411fab4ec48191b.asciidoc
Tomas Della Vedova 01e045f491 Update docs examples (#1024)
* Updated generate-docs-examples script

* Updated docs examples
2019-12-19 09:29:15 +01:00

24 lines
421 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.search({
body: {
aggs: {
genres: {
terms: {
field: 'genre',
script: {
source: "'Genre: ' +_value",
lang: 'painless'
}
}
}
}
}
})
console.log(response)
----