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,42 @@
// 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: {
query: {
bool: {
must: [
{
match: {
title: 'Search'
}
},
{
match: {
content: 'Elasticsearch'
}
}
],
filter: [
{
term: {
status: 'published'
}
},
{
range: {
publish_date: {
gte: '2015-01-01'
}
}
}
]
}
}
}
})
console.log(response)
----