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.

bitop #

Performs a bitwise operation between multiple keys (containing string values) and stores the result in the destination key.

[Redis documentation]


Query Syntax #

HTTP #

URL: http://kuzzle:7512/ms/_bitop/<_id>
Method: POST
Body:
{
  "operation": "[AND|OR|XOR|NOT]",
  "keys": ["srckey1", "srckey2", "..."]
}

Other protocols #

{
  "controller": "ms",
  "action": "bitop",
  "_id": "destination key",
  "body": {
    "operation": "[AND|OR|XOR|NOT]",
    "keys": ["srckey1", "srckey2", "..."]
  }
}

Arguments #

  • _id: destination key to create

Body properties #

  • keys: the list of keys to combine
  • operation: the bitwise operand to use to combine keys. Allowed values: AND, NOT, OR, XOR

Response #

Returns the new destination key length, as an integer.

{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "bitop",
  "collection": null,
  "index": null,
  "result": 42
}