Added doc examples (#1011)

* Added generate-docs-examples script

* Added doc_examples folder wth the initial examples
This commit is contained in:
Tomas Della Vedova
2019-11-29 14:40:05 +01:00
committed by GitHub
parent 177aae20e6
commit 1e1252383d
57 changed files with 1099 additions and 0 deletions

View File

@ -0,0 +1,18 @@
// 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({
index: 'bank',
body: {
query: {
match_phrase: {
address: 'mill lane'
}
}
}
})
console.log(response)
----