code | type | title | description |
---|---|---|---|
true |
page |
mgetDocument |
Collection:mgetDocument |
Get multiple Documents according to the input document IDs.
Arguments | Type | Description |
---|---|---|
documentIds |
String[] | Array of IDs of documents to retrieve |
options |
JSON Object | Optional parameters |
callback |
function | Callback handling the response |
Option | Type | Description | Default |
---|---|---|---|
queuable |
boolean | Make this request queuable or not | true |
Returns a JSON object
containing the raw Kuzzle response.
<<< ./snippets/mget-document-1.php
Callback response:
{
"hits": [
{ "_id": "doc1", "first": "document" },
{ "_id": "doc2", "second": "document" }
],
"total": 2
}