* Added generate-docs-examples script * Added doc_examples folder wth the initial examples
22 lines
385 B
Plaintext
22 lines
385 B
Plaintext
// 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)
|
|
----
|
|
|