Update docs examples (#1024)

* Updated generate-docs-examples script

* Updated docs examples
This commit is contained in:
Tomas Della Vedova
2019-12-19 09:29:15 +01:00
committed by GitHub
parent c69db0ba08
commit 01e045f491
42 changed files with 982 additions and 3 deletions

View File

@ -0,0 +1,29 @@
// 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: {
actors: {
terms: {
field: 'actors',
size: 10,
collect_mode: 'breadth_first'
},
aggs: {
costars: {
terms: {
field: 'actors',
size: 5
}
}
}
}
}
}
})
console.log(response)
----