Files
elasticsearch-js/docs/_examples/msearch.asciidoc
2013-12-27 16:41:38 -07:00

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