Files
elasticsearch-js/docs/_examples/msearch.asciidoc
spalger c81168d7b9 [docs/msearch] fix example
(cherry picked from commit 09a3393b23)
2016-01-26 09:26:36 -07:00

16 lines
376 B
Plaintext

.Perform multiple different searches, the body is made up of meta/data pairs
[source,js]
---------
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"' } } }
]
});
---------