sinterstore #
Computes the intersection of the provided sets of unique values, and stores the result in a destination key.
If the destination key already exists, it is overwritten.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_sinterstore
Method: POST
Body:
{
"destination": "<destination key>",
"keys": ["key1", "key2", "..."]
}
Other protocols #
{
"controller": "ms",
"action": "sinterstore",
"body": {
"destination": "<destination key>",
"keys": ["key1", "key2", "..."]
}
}
Body properties #
destination
: new set to create, holding the intersectionkeys
: source sets to intersect with the reference set
Response #
Returns the number of values stored in the destination key.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "sinterstore",
"collection": null,
"index": null,
"result": 3
}
Edit this page on Github(opens new window)