Added/updated snippets for docs (#2318)
This commit is contained in:
28
docs/doc_examples/acb10091ad335ddd15d71021aaf23c62.asciidoc
Normal file
28
docs/doc_examples/acb10091ad335ddd15d71021aaf23c62.asciidoc
Normal file
@ -0,0 +1,28 @@
|
||||
// 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({
|
||||
track_scores: true,
|
||||
sort: [
|
||||
{
|
||||
post_date: {
|
||||
order: "desc",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "desc",
|
||||
},
|
||||
{
|
||||
age: "desc",
|
||||
},
|
||||
],
|
||||
query: {
|
||||
term: {
|
||||
user: "kimchy",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user