Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

zremrangebylex #

Removes members within a provided range, from a sorted set where all elements have the same score, using lexicographical ordering.

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_zremrangebylex/<_id>
Method: DELETE
Body:
Copied to clipboard!
{
  "min": "<min interval>",
  "max": "<max interval>"
}

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "zremrangebylex",
  "_id": "<key>",
  "body": {
    "min": "<min interval>",
    "max": "<max interval>"
  }
}

Arguments #

  • _id: sorted set identifier

Body properties #

  • min: minimum range value
  • max: maximum range value

The min and max interval are inclusive. See the Redis documentation to change this behavior.


Response #

Returns the number of removed members.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "zremrangebylex",
  "collection": null,
  "index": null,
  "result": 14
}