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
21
docs/doc_examples/60ee33f3acfdd0fe6f288ac77312c780.asciidoc
Normal file
21
docs/doc_examples/60ee33f3acfdd0fe6f288ac77312c780.asciidoc
Normal file
@ -0,0 +1,21 @@
|
||||
// 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: {
|
||||
query_string: {
|
||||
fields: [
|
||||
'title'
|
||||
],
|
||||
query: 'this that thus',
|
||||
minimum_should_match: 2
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user