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.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_sunionstore
Method: POST
Body:
{
"destination": "<destination key>",
"keys": ["key1", "key2", "..."]
}
Other protocols #
{
"controller": "ms",
"action": "sunionstore",
"body": {
"destination": "<destination key>",
"keys": ["key1", "key2", "..."]
}
}
Body properties #
destination
: destination for the union resultkeys
: array of set identifiers
Response #
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
}
Edit this page on Github(opens new window)