IMPORTANT: elasticsearch.js has been replaced by the new Elasticsearch JavaScript client. We strongly advise you to migrate to the new client. To learn more, see the migration guide.
msearch
editmsearch
editclient.msearch([params, [callback]])
Execute several search requests within the same request.
Check the API Conventions and the elasticsearch docs for more information pertaining to this method.
Perform multiple different searches, the body is made up of meta/data pairs.
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"' } } } ] });
Params
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|