code | type | title |
---|---|---|
true |
page |
sunionstore |
Computes the union of multiple sets of unique values and stores it in a new set.
If the destination key already exists, it is overwritten.
URL: http://kuzzle:7512/ms/_sunionstore
Method: POST
Body:
{
"destination": "<destination key>",
"keys": ["key1", "key2", "..."]
}
{
"controller": "ms",
"action": "sunionstore",
"body": {
"destination": "<destination key>",
"keys": ["key1", "key2", "..."]
}
}
destination
: destination for the union resultkeys
: array of set identifiers
Returns the number of members stored in the destination set.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "sunionstore",
"collection": null,
"index": null,
"result": 31
}