pfadd #
Adds elements to a HyperLogLog data structure.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_pfadd/<_id>
Method: POST
Body:
{
"elements": ["element1", "element2", "..."]
}
Other protocols #
{
"controller": "ms",
"action": "pfadd",
"_id": "<key>",
"body": {
"elements": ["element1", "element2", "..."]
}
}
Argument #
_id
: hyperloglog key identifier
Body properties #
elements
: an array of values to add to the hyperloglog structure
Response #
Returns either 0
(command failed), or 1
(command succeeded).
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "pfadd",
"collection": null,
"index": null,
"result": 1
}
Edit this page on Github (opens new window)