Files
elasticsearch-js/docs/_examples/msearch.asciidoc
2015-08-04 10:49:28 -07:00

15 lines
377 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"' } } }
]
});
---------