You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above lines replace `/path/to/module/` with the actual path to the module.
243
243
244
-
Alternatively, you can download and run JSON from a precompiled binary:
244
+
Alternatively, you can download and run Redis from a precompiled binary:
245
245
246
-
1. Download a precompiled version of JSON from the [Redis download center](https://redis.com/download-center/modules/).
246
+
1. Download a precompiled version of RedisJSON from the [Redis download center](https://redis.com/download-center/modules/).
247
247
248
248
#### Command-line option
249
249
@@ -257,7 +257,7 @@ In the above lines replace `/path/to/module/` with the actual path to the module
257
257
258
258
#### `MODULE LOAD` command
259
259
260
-
You can also use the `MODULE LOAD` command to load JSON. Note that `MODULE LOAD` is a **dangerous command** and may be blocked/deprecated in the future due to security considerations.
260
+
You can also use the `MODULE LOAD` command to load RedisJSON. Note that `MODULE LOAD` is a **dangerous command** and may be blocked/deprecated in the future due to security considerations.
261
261
262
262
After the module has been loaded successfully, the Redis log should have lines similar to:
Copy file name to clipboardExpand all lines: docs/docs/developer.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ description: >
8
8
9
9
# Developing Redis JSON
10
10
11
-
Developing Redis JSON involves setting up the development environment (which can be either Linux-based or macOS-based), building JSON, running tests and benchmarks, and debugging both the JSON module and its tests.
11
+
Developing Redis JSON involves setting up the development environment (which can be either Linux-based or macOS-based), building RedisJSON (the Redis module providing JSON), running tests and benchmarks, and debugging both the JSON module and its tests.
12
12
13
13
## Cloning the git repository
14
-
To clone the JSON module and its submodules, run:
14
+
To clone the RedisJSON module and its submodules, run:
You can replace `debian:bullseye` with your OS of choice. If you use the same OS as your host machine, you can run the JSON binary on your host after it is built.
41
+
You can replace `debian:bullseye` with your OS of choice. If you use the same OS as your host machine, you can run the RedisJSON binary on your host after it is built.
42
42
43
43
## Installing prerequisites
44
44
45
-
To build and test JSON one needs to install several packages, depending on the underlying OS. Currently, we support the Ubuntu/Debian, CentOS, Fedora, and macOS.
45
+
To build and test RedisJSON one needs to install several packages, depending on the underlying OS. Currently, we support the Ubuntu/Debian, CentOS, Fedora, and macOS.
46
46
47
-
Enter `RedisJSON` directory and run:
47
+
Enter the `RedisJSON` directory and run:
48
48
49
49
```sh
50
50
$ ./sbin/setup
@@ -124,13 +124,13 @@ make sanbox # create container for CLang Sanitizer tests
124
124
```
125
125
126
126
## Building from source
127
-
Run ```make build``` to build JSON.
127
+
Run ```make build``` to build RedisJSON.
128
128
129
129
Notes:
130
130
131
131
* Binary files are placed under `target/release/`, according to platform and build variant.
132
132
133
-
*JSON uses [Cargo](https://github.com/rust-lang/cargo) as its build system. ```make build``` will invoke both Cargo and the subsequent `make` command that's required to complete the build.
133
+
*RedisJSON uses [Cargo](https://github.com/rust-lang/cargo) as its build system. ```make build``` will invoke both Cargo and the subsequent `make` command that's required to complete the build.
134
134
135
135
Use ```make clean``` to remove built artifacts. ```make clean ALL=1``` will remove the entire bin subdirectory.
136
136
@@ -154,7 +154,7 @@ $ REDIS_PORT=6379 make test
154
154
```
155
155
156
156
## Debugging
157
-
To include debugging information, you need to set the `DEBUG` environment variable before you compile JSON. For example, run `export DEBUG=1`.
157
+
To include debugging information, you need to set the `DEBUG` environment variable before you compile RedisJSON. For example, run `export DEBUG=1`.
158
158
159
159
You can add breakpoints to Python tests in single-test mode. To set a breakpoint, call the ```BB()``` function inside a test.
Copy file name to clipboardExpand all lines: docs/docs/indexing_JSON.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,6 @@ description: Combine Redis JSON and Search and Query to index and search JSON do
7
7
8
8
In addition to storing JSON documents, you can also index them using the [Search and Query](/docs/stack/search) feature. This enables full-text search capabilities and document retrieval based on their content.
9
9
10
-
To use these features, you must install two modules: JSON and Search and Query. [Redis Stack](/docs/stack) automatically includes both modules.
10
+
To use these features, you must install two modules: RedisJSON and RediSearch. [Redis Stack](/docs/stack) automatically includes both modules.
11
11
12
-
See the [tutorial](/docs/stack/search/indexing_json) to learn how to use Search and Query with JSON.
12
+
See the [tutorial](/docs/stack/search/indexing_json) to learn how to search and query your JSON.
Copy file name to clipboardExpand all lines: docs/docs/path.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ And if multi-paths are used, the return value is a JSON string with a top-level
16
16
17
17
## JSONPath support
18
18
19
-
JSON v2.0 introduced [JSONPath](http://goessner.net/articles/JsonPath/) support. It follows the syntax described by Goessner in his [article](http://goessner.net/articles/JsonPath/).
19
+
RedisJSON v2.0 introduced [JSONPath](http://goessner.net/articles/JsonPath/) support. It follows the syntax described by Goessner in his [article](http://goessner.net/articles/JsonPath/).
20
20
21
21
A JSONPath query can resolve to several locations in a JSON document. In this case, the JSON commands apply the operation to every possible location. This is a major improvement over [legacy path](#legacy-path-syntax) queries, which only operate on the first path.
22
22
@@ -248,11 +248,11 @@ JSONPath queries also work with other JSON commands that accept a path as an arg
248
248
249
249
## Legacy path syntax
250
250
251
-
JSON v1 had the following path implementation. JSON v2 still supports this legacy path in addition to JSONPath.
251
+
RedisJSON v1 had the following path implementation. JSON v2 still supports this legacy path in addition to JSONPath.
252
252
253
253
Paths always begin at the root of a Redis JSON value. The root is denoted by a period character (`.`). For paths that reference the root's children, it is optional to prefix the path with the root.
254
254
255
-
JSON supports both dot notation and bracket notation for object key access. The following paths refer to _headphones_, which is a child of _inventory_ under the root:
255
+
Redis JSON supports both dot notation and bracket notation for object key access. The following paths refer to _headphones_, which is a child of _inventory_ under the root:
Copy file name to clipboardExpand all lines: docs/docs/use_cases.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,16 @@ aliases:
10
10
11
11
You can of course use Redis native data structures to store JSON objects, and that's a common practice. For example, you can serialize JSON and save it in a Redis String.
12
12
13
-
However, RedisJSON provides several benefits over this approach.
13
+
However, Redis JSON provides several benefits over this approach.
14
14
15
15
**Access and retrieval of subvalues**
16
16
17
-
With RedisJSON, you can get nested values without having to transmit the entire object over the network. Being able to access sub-objects can lead to greater efficiencies when you're storing large JSON objects in Redis.
17
+
With JSON, you can get nested values without having to transmit the entire object over the network. Being able to access sub-objects can lead to greater efficiencies when you're storing large JSON objects in Redis.
18
18
19
19
**Atomic partial updates**
20
20
21
-
RedisJSON allows you to atomically run operations like incrementing a value, adding, or removing elements from an array, append strings, and so on. To do the same with a serialized object, you have to retrieve and then reserialize the entire object, which can be expensive and also lack atomicity.
21
+
JSON allows you to atomically run operations like incrementing a value, adding, or removing elements from an array, append strings, and so on. To do the same with a serialized object, you have to retrieve and then reserialize the entire object, which can be expensive and also lack atomicity.
22
22
23
23
**Indexing and querying**
24
24
25
-
When you store JSON objects as Redis strings, there's no good way to query those objects. On the other hand, storing these objects as JSON using RedisJSON lets you index and query them. This is provided by RediSearch.
25
+
When you store JSON objects as Redis strings, there's no good way to query those objects. On the other hand, storing these objects as JSON using Redis Stack lets you index and query them. This is provided by the search and query capabilities of Redis Stack.
0 commit comments