* [docs] update readme and examples to use async/await * [apis] regenerate (including updated examples)
16 lines
399 B
Plaintext
16 lines
399 B
Plaintext
.Perform multiple different searches, the body is made up of meta/data pairs
|
|
[source,js]
|
|
---------
|
|
const response = await client.msearch({
|
|
body: [
|
|
// match all query, on all indices and types
|
|
{},
|
|
{ query: { match_all: {} } },
|
|
|
|
// query_string query, on index/mytype
|
|
{ index: 'myindex', type: 'mytype' },
|
|
{ query: { query_string: { query: '"Test 1"' } } }
|
|
]
|
|
});
|
|
---------
|