Added new docs examples (#1149)
* Updated enabled files list * Added new docs examples
This commit is contained in:
committed by
GitHub
parent
7717799ca6
commit
0e659031e3
33
docs/doc_examples/ae9b5fbd42af2386ffbf56ad4a697e51.asciidoc
Normal file
33
docs/doc_examples/ae9b5fbd42af2386ffbf56ad4a697e51.asciidoc
Normal file
@ -0,0 +1,33 @@
|
||||
// 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: 'my_index',
|
||||
body: {
|
||||
sort: [
|
||||
{
|
||||
post_date: {
|
||||
order: 'asc'
|
||||
}
|
||||
},
|
||||
'user',
|
||||
{
|
||||
name: 'desc'
|
||||
},
|
||||
{
|
||||
age: 'desc'
|
||||
},
|
||||
'_score'
|
||||
],
|
||||
query: {
|
||||
term: {
|
||||
user: 'kimchy'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user