Added doc examples (#1011)
* Added generate-docs-examples script * Added doc_examples folder wth the initial examples
This commit is contained in:
committed by
GitHub
parent
177aae20e6
commit
1e1252383d
18
docs/doc_examples/231aa0bb39c35fe199d28fe0e4a62b2e.asciidoc
Normal file
18
docs/doc_examples/231aa0bb39c35fe199d28fe0e4a62b2e.asciidoc
Normal 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)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user