Added/updated snippets for docs (#2318)
This commit is contained in:
30
docs/doc_examples/c76cb6a080959b0d87afd780cf814be2.asciidoc
Normal file
30
docs/doc_examples/c76cb6a080959b0d87afd780cf814be2.asciidoc
Normal file
@ -0,0 +1,30 @@
|
||||
// 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({
|
||||
query: {
|
||||
bool: {
|
||||
should: [
|
||||
{
|
||||
term: {
|
||||
message: "quick",
|
||||
},
|
||||
},
|
||||
{
|
||||
term: {
|
||||
message: "brown",
|
||||
},
|
||||
},
|
||||
{
|
||||
prefix: {
|
||||
message: "f",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user