For https://github.com/elastic/clients-team/issues/728
(cherry picked from commit 5413eb5f35)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
13 lines
158 B
Plaintext
13 lines
158 B
Plaintext
[source,js]
|
|
----
|
|
const response = await client.search({
|
|
index: 'books',
|
|
query: {
|
|
match: {
|
|
name: 'brave'
|
|
}
|
|
}
|
|
})
|
|
console.log(response)
|
|
----
|