zrevrank #
Returns the position of an element in a sorted set, with scores in descending order. The index returned is 0-based (the lowest score member has an index of 0).
Query Syntax #
HTTP #
URL: http://kuzzle:7512/ms/_zrevrank/<_id>/<member>
Method: GETOther protocols #
{
"controller": "ms",
"action": "zrevrank",
"_id": "<key>",
"member": "<member>"
}Arguments #
_id: sorted set identifiermember: member value to search
Response #
Returns the index of the found member in the sorted set, or null if the member is not found.
{
"requestId": "<unique request identifier>",
"status": 200,
"error": null,
"controller": "ms",
"action": "zrevrank",
"collection": null,
"index": null,
"result": 2
}