added docs to the repo
This commit is contained in:
15
docs/_examples/msearch.asciidoc
Normal file
15
docs/_examples/msearch.asciidoc
Normal file
@ -0,0 +1,15 @@
|
||||
.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"' } } }
|
||||
]
|
||||
});
|
||||
---------
|
||||
Reference in New Issue
Block a user