Skip to content

Commit da51bf6

Browse files
committed
Merge branch 'main' into DOC-4563
2 parents 751ee6f + 458ea31 commit da51bf6

File tree

14 files changed

+383
-87
lines changed

14 files changed

+383
-87
lines changed

content/commands/ft.aggregate/index.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ arguments:
139139
name: params
140140
optional: true
141141
type: block
142+
- name: scorer
143+
optional: true
144+
token: SCORER
145+
type: string
146+
- name: addscores
147+
optional: true
148+
token: ADDSCORES
149+
type: pure-token
142150
- name: dialect
143151
optional: true
144152
since: 2.4.3
@@ -173,7 +181,8 @@ syntax: "FT.AGGREGATE index query \n [VERBATIM] \n [LOAD count field [field ..
173181
\ ...]] ...]] \n [ SORTBY nargs [ property ASC | DESC [ property ASC | DESC ...]]\
174182
\ [MAX num] [WITHCOUNT] \n [ APPLY expression AS name [ APPLY expression AS name\
175183
\ ...]] \n [ LIMIT offset num] \n [FILTER filter] \n [ WITHCURSOR [COUNT read_size]\
176-
\ [MAXIDLE idle_time]] \n [ PARAMS nargs name value [ name value ...]] \n [ADDSCORES] \n [DIALECT\
184+
\ [MAXIDLE idle_time]] \n [ PARAMS nargs name value [ name value ...]] \n [SCORER scorer]\n
185+
\ [ADDSCORES] \n [DIALECT\
177186
\ dialect]\n"
178187
syntax_fmt: "FT.AGGREGATE index query [VERBATIM] [LOAD\_count field [field ...]]\n\
179188
\ [TIMEOUT\_timeout] [LOAD *] [GROUPBY\_nargs property [property ...]\n [REDUCE\_\
@@ -183,15 +192,15 @@ syntax_fmt: "FT.AGGREGATE index query [VERBATIM] [LOAD\_count field [field ...]]
183192
name] ...]] ...]]\n [SORTBY\_nargs [property <ASC | DESC> [property <ASC | DESC>\
184193
\ ...]]\n [MAX\_num]] [APPLY\_expression AS\_name [APPLY\_expression AS\_name\n\
185194
\ ...]] [LIMIT offset num] [FILTER\_filter] [WITHCURSOR\n [COUNT\_read_size] [MAXIDLE\_\
186-
idle_time]] [PARAMS nargs name value\n [name value ...]]\n [ADDSCORES]\n [DIALECT\_dialect]"
195+
idle_time]] [PARAMS nargs name value\n [name value ...]]\n [SCORER scorer]\n [ADDSCORES]\n [DIALECT\_dialect]"
187196
syntax_str: "query [VERBATIM] [LOAD\_count field [field ...]] [TIMEOUT\_timeout] [LOAD\
188197
\ *] [GROUPBY\_nargs property [property ...] [REDUCE\_function nargs arg [arg ...]\
189198
\ [AS\_name] [REDUCE\_function nargs arg [arg ...] [AS\_name] ...]] [GROUPBY\_nargs\
190199
\ property [property ...] [REDUCE\_function nargs arg [arg ...] [AS\_name] [REDUCE\_\
191200
function nargs arg [arg ...] [AS\_name] ...]] ...]] [SORTBY\_nargs [property <ASC\
192201
\ | DESC> [property <ASC | DESC> ...]] [MAX\_num]] [APPLY\_expression AS\_name [APPLY\_\
193202
expression AS\_name ...]] [LIMIT offset num] [FILTER\_filter] [WITHCURSOR [COUNT\_\
194-
read_size] [MAXIDLE\_idle_time]] [PARAMS nargs name value [name value ...]] [ADDSCORES] [DIALECT\_\
203+
read_size] [MAXIDLE\_idle_time]] [PARAMS nargs name value [name value ...]] [SCORER scorer] [ADDSCORES] [DIALECT\_\
195204
dialect]"
196205
title: FT.AGGREGATE
197206
---
@@ -316,6 +325,12 @@ defines one or more value parameters. Each parameter has a name and a value.
316325
You can reference parameters in the `query` by a `$`, followed by the parameter name, for example, `$user`. Each such reference in the search query to a parameter name is substituted by the corresponding parameter value. For example, with parameter definition `PARAMS 4 lon 29.69465 lat 34.95126`, the expression `@loc:[$lon $lat 10 km]` is evaluated to `@loc:[29.69465 34.95126 10 km]`. You cannot reference parameters in the query string where concrete values are not allowed, such as in field names, for example, `@loc`. To use `PARAMS`, set `DIALECT` to `2` or greater than `2`.
317326
</details>
318327

328+
<details open>
329+
<summary><code>SCORER {scorer}</code></summary>
330+
331+
uses a [built-in]({{< relref "/develop/interact/search-and-query/advanced-concepts/scoring" >}}) or a [user-provided]({{< relref "/develop/interact/search-and-query/administration/extensions" >}}) scoring function.
332+
</details>
333+
319334
<details open>
320335
<summary><code>ADDSCORES</code></summary>
321336

content/develop/clients/go/queryjson.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,36 @@ Connect to the database:
3131
{{< clients-example go_home_json connect >}}
3232
{{< /clients-example >}}
3333

34+
{{< note >}}The connection options in the example specify
35+
[RESP2]({{< relref "/develop/reference/protocol-spec" >}}) in the `Protocol`
36+
field. We recommend that you use RESP2 for Redis query engine operations in `go-redis`
37+
because some of the response structures for the default RESP3 are currently
38+
incomplete and so you must handle the "raw" responses in your own code.
39+
40+
If you do want to use RESP3, you should set the `UnstableResp3` option when
41+
you connect:
42+
43+
```go
44+
rdb := redis.NewClient(&redis.Options{
45+
UnstableResp3: true,
46+
// Other options...
47+
})
48+
```
49+
50+
You must also access command results using the `RawResult()` and `RawVal()` methods
51+
rather than the usual `Result()` and `Val()`:
52+
53+
```go
54+
res1, err := client.FTSearchWithArgs(
55+
ctx, "txt", "foo bar", &redis.FTSearchOptions{},
56+
).RawResult()
57+
val1 := client.FTSearchWithArgs(
58+
ctx, "txt", "foo bar", &redis.FTSearchOptions{},
59+
).RawVal()
60+
```
61+
{{< /note >}}
62+
63+
3464
Create some test data to add to the database:
3565

3666
{{< clients-example go_home_json create_data >}}

content/embeds/supported-platforms-embed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Redis Enterprise Software is supported on several operating systems, cloud envi
1616
| RHEL 9<br />FIPS mode<sup>[5](#table-note-5)</sup> | <span title="Supported">&#x2705;</span> |||||
1717
| RHEL 8 &<br />compatible distros<sup>[1](#table-note-1)</sup> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> |
1818
| RHEL 7 &<br />compatible distros<sup>[1](#table-note-1)</sup> ||| <span title="Deprecated" class="font-serif">:warning:</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> |
19+
| Ubuntu 22.04<sup>[2](#table-note-2)</sup> | <span title="Supported">&#x2705;</span> |||||
1920
| Ubuntu 20.04<sup>[2](#table-note-2)</sup> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> ||
2021
| Ubuntu 18.04<sup>[2](#table-note-2)</sup> || <span title="Deprecated" class="font-serif">:warning:</span> | <span title="Deprecated" class="font-serif">:warning:</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> |
2122
| Ubuntu 16.04<sup>[2](#table-note-2)</sup> ||| <span title="Deprecated" class="font-serif">:warning:</span> | <span title="Supported">&#x2705;</span> | <span title="Supported">&#x2705;</span> |

content/operate/kubernetes/re-databases/replica-redb.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ weight: 42
1111
---
1212

1313
You can configure a replica of a database by creating an item in
14-
the `replicaSources` section of the [Redis Enterprise database specification](https://github.com/RedisLabs/redis-enterprise-k8s-docs/blob/master/redis_enterprise_database_api.md#redisenterprisedatabasespec). The value of
15-
`replicaSourceType` must be 'SECRET'; `replicaSourceName`
16-
must be the name of a secret that contains the replica source url.
14+
the [`replicaSources`](/operate/kubernetes/reference/redis_enterprise_database_api#specreplicasources) section of the RedisEnterpriseDatabase (REDB) custom resource.
1715

18-
A secret must be created using a `stringData` section containing the replica source URI as follows:
16+
A secret must be created with the `stringData` section containing the replica source URI as follows:
17+
18+
Create a secret with the replica source URI listed in the `stringData` field as follows:
1919

2020
```yaml
2121
apiVersion: v1
2222
kind: Secret
2323
metadata:
2424
name: my-replica-source
2525
stringData:
26-
uri: replica-source-uri-goes-here
26+
uri: <replica-source-uri-goes-here>
2727
```
2828
2929
The replica source URL can be retrieved by going to "UI > database > configuration > Press the button Get Replica of source URL"
@@ -80,7 +80,7 @@ You will need `kubectl`, `curl`, and `jq` installed for this procedure.
8080
```js
8181
JQ='.[] | select(.name=="'
8282
JQ+="${SOURCE_DB}"
83-
JQ+='") | ("redis://admin:" + .authentication_admin_pass + "@"+.endpoints[0].dns_name+":"+(.endpoints[0].port|tostring))'
83+
JQ+='") | ("redis://admin:" + .authentication_admin_pass + "@"+.name+":"+(.endpoints[0].port|tostring))'
8484
URI=`curl -sf -k -u "$CLUSTER_USER:$CLUSTER_PASSWORD" "https://localhost:9443/v1/bdbs?fields=uid,name,endpoints,authentication_admin_pass" | jq "$JQ" | sed 's/"//g'`
8585
```
8686

content/operate/kubernetes/security/manage-rec-credentials.md

Lines changed: 76 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -44,107 +44,111 @@ The credentials can be used to access the Redis Enterprise admin console or the
4444

4545
1. Access a [pod](https://kubernetes.io/docs/concepts/workloads/pods/) running a Redis Enterprise cluster.
4646

47-
```bash
48-
kubectl exec -it <rec-resource-name>-0 bash
49-
```
47+
```sh
48+
kubectl exec -it <rec-resource-name>-0 bash
49+
```
5050

51-
1. Add a new password for the existing user.
51+
2. Add a new password for the existing user.
52+
53+
```bash
54+
REC_USER="`cat /opt/redislabs/credentials/username`" \
55+
REC_PASSWORD="`cat /opt/redislabs/credentials/password`" \
56+
curl -k --request POST \
57+
--url https://localhost:9443/v1/users/password \
58+
-u "$REC_USER:$REC_PASSWORD" \
59+
--header 'Content-Type: application/json' \
60+
--data "{\"username\":\"$REC_USER\", \
61+
\"old_password\":\"$REC_PASSWORD\", \
62+
\"new_password\":\"<NEW PASSWORD>\"}"
63+
```
5264

53-
```bash
54-
REC_USER="`cat /opt/redislabs/credentials/username`" \
55-
REC_PASSWORD="`cat /opt/redislabs/credentials/password`" \
56-
curl -k --request POST \
57-
--url https://localhost:9443/v1/users/password \
58-
-u "$REC_USER:$REC_PASSWORD" \
59-
--header 'Content-Type: application/json' \
60-
--data "{\"username\":\"$REC_USER\", \
61-
\"old_password\":\"$REC_PASSWORD\", \
62-
\"new_password\":\"<NEW PASSWORD>\"}"
63-
```
65+
3. From outside the pod, update the REC credential secret.
6466

65-
1. From outside the pod, update the REC credential secret.
67+
3a. Save the existing username to a text file.
6668

67-
1. Save the existing username to a text file .
68-
```bash
69-
echo -n "<current_username>" > username
70-
```
69+
```sh
70+
echo -n "<current_username>" > username
71+
```
7172

72-
1. Save the new password to a text file.
73-
```bash
74-
echo -n "<new_password>" > password
75-
```
73+
3b. Save the new password to a text file.
7674

77-
1. Update the REC credential secret.
78-
```bash
79-
kubectl create secret generic <cluster_secret_name> \
80-
--from-file=./username \
81-
--from-file=./password --dry-run \
82-
-o yaml
83-
kubectl apply -f
84-
```
75+
```sh
76+
echo -n "<new_password>" > password
77+
```
8578

86-
1. Wait five minutes for all the components to read the new password from the updated secret. If you proceed to the next step too soon, the account could get locked.
79+
3c. Update the REC credential secret.
8780

88-
1. Access a pod running a Redis Enterprise cluster again.
81+
```sh
82+
kubectl create secret generic <cluster_secret_name> \
83+
--from-file=./username \
84+
--from-file=./password --dry-run \
85+
-o yaml | \
86+
kubectl apply -f
87+
```
8988

90-
```bash
91-
kubectl exec -it <rec-resource-name>-0 bash
92-
```
89+
4. Wait five minutes for all the components to read the new password from the updated secret. If you proceed to the next step too soon, the account could get locked.
9390

94-
1. Remove the previous password to ensure only the new one applies.
91+
5. Access a pod running a Redis Enterprise cluster again.
9592

96-
```sh
97-
REC_USER="`cat /opt/redislabs/credentials/username`"; \
98-
REC_PASSWORD="`cat /opt/redislabs/credentials/password`"; \
99-
curl -k --request DELETE \
100-
--url https://localhost:9443/v1/users/password \
101-
-u "$REC_USER:$REC_PASSWORD" \
102-
--header 'Content-Type: application/json' \
103-
--data "{\"username\":\"$REC_USER\", \
104-
\"old_password\":\"<OLD PASSWORD\"}"
105-
```
93+
```sh
94+
kubectl exec -it <rec-resource-name>-0 bash
95+
```
96+
97+
6. Remove the previous password to ensure only the new one applies.
10698

107-
{{<note>}} The username for the K8s secret is the email displayed on the Redis Enterprise admin console. {{</note>}}
99+
```sh
100+
REC_USER="`cat /opt/redislabs/credentials/username`"; \
101+
REC_PASSWORD="`cat /opt/redislabs/credentials/password`"; \
102+
curl -k --request DELETE \
103+
--url https://localhost:9443/v1/users/password \
104+
-u "$REC_USER:$REC_PASSWORD" \
105+
--header 'Content-Type: application/json' \
106+
--data "{\"username\":\"$REC_USER\", \
107+
\"old_password\":\"<OLD PASSWORD\"}"
108+
```
109+
110+
{{<note>}} The username for the K8s secret is the email displayed on the Redis Enterprise admin console. {{</note>}}
108111

109112
### Change both the REC username and password
110113

111114
1. [Connect to the admin console]({{< relref "/operate/kubernetes/re-clusters/connect-to-admin-console.md" >}})
112115

113-
1. [Add another admin user]({{< relref "/operate/rs/security/access-control/create-users" >}}) and choose a new password.
116+
2. [Add another admin user]({{< relref "/operate/rs/security/access-control/create-users" >}}) and choose a new password.
114117

115-
1. Specify the new username in the `username` field of your REC custom resource spec.
118+
3. Specify the new username in the `username` field of your REC custom resource spec.
116119

117-
1. Update the REC credential secret:
120+
4. Update the REC credential secret:
118121

119-
1. Save the existing username to a text file.
122+
4a. Save the new username to a text file.
120123

121-
```bash
122-
echo -n "<current_username>" > username
123-
```
124+
```sh
125+
echo -n "<new_username>" > username
126+
```
124127

125-
1. Save the new password to a text file.
128+
4b. Save the new password to a text file.
126129

127-
```bash
128-
echo -n "<new_password>" > password
129-
```
130+
```sh
131+
echo -n "<new_password>" > password
132+
```
130133

131-
1. Update the REC credential secret.
134+
4c. Update the REC credential secret.
132135

133-
```bash
134-
kubectl create secret generic <cluster_secret_name> \
135-
--from-file=./username \
136-
--from-file=./password --dry-run \
137-
-o yaml
138-
kubectl apply -f
139-
```
136+
```sh
137+
kubectl create secret generic <cluster_secret_name> \
138+
--save-config \
139+
--dry-run=client \
140+
--from-file=./username --from-file=./password \
141+
-o yaml | \
142+
kubectl apply -f
143+
```
140144

141-
1. Wait five minutes for all the components to read the new password from the updated secret. If you proceed to the next step too soon, the account could get locked.
145+
5. Wait five minutes for all the components to read the new password from the updated secret. If you proceed to the next step too soon, the account could get locked.
142146

143-
1. Delete the previous admin user from the cluster.
147+
6. Delete the previous admin user from the cluster.
144148

145-
{{<note>}}
149+
{{<note>}}
146150
The operator may log errors in the time between updating the username in the REC spec and the secret update.
147-
{{</note>}}
151+
{{</note>}}
148152

149153
### Update the credentials secret in Vault
150154

content/operate/kubernetes/upgrade/openshift-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,6 @@ If the operator logs show an event related to an incompatible database version,
230230
curl -sfk -u <rec_username>:<rec_password> -X POST -H "Content-Type: application/json" -d '{"redis_version": <target redis version>}' https://localhost:9443/v1/bdbs/<BDB UID>/upgrade
231231
```
232232

233-
After updating the modules with the Redis Software API, update the REDB custom resource to reflect the change.
233+
After updating the database with the Redis Software API, update the REDB custom resource to reflect the change.
234234

235235

content/operate/kubernetes/upgrade/upgrade-olm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,4 @@ If the operator logs show an event related to an incompatible database version,
114114
curl -sfk -u <rec_username>:<rec_password> -X POST -H "Content-Type: application/json" -d '{"redis_version": <target redis version>}' https://localhost:9443/v1/bdbs/<BDB UID>/upgrade
115115
```
116116

117-
After updating the modules with the Redis Software API, update the REDB custom resource to reflect the change.
117+
After updating the database with the Redis Software API, update the REDB custom resource to reflect the change.

content/operate/kubernetes/upgrade/upgrade-redis-cluster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ If the operator logs show an event related to an unsupported module, download th
208208
curl -sfk -u <rec_username>:<rec_password> -X POST -F 'module=@<full path to your module>' https://localhost:9443/v2/modules
209209
```
210210

211-
After updating the modules with the Redis Software API, update the REDB custom resource to reflect the change.
211+
After updating the database with the Redis Software API, update the REDB custom resource to reflect the change.
212212

213213
### Invalid database version
214214

content/operate/rs/7.4/installing-upgrading/quickstarts/docker-quickstart.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ description: Set up a development or test deployment of Redis Enterprise Softwar
99
using Docker.
1010
linkTitle: Docker quickstart
1111
weight: 2
12-
aliases: /operate/rs/installing-upgrading/get-started-docker/
1312
url: '/operate/rs/7.4/installing-upgrading/quickstarts/docker-quickstart/'
1413
---
1514
{{< warning >}}

content/operate/rs/installing-upgrading/quickstarts/docker-quickstart.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description: Set up a development or test deployment of Redis Enterprise Softwar
99
using Docker.
1010
linkTitle: Docker quickstart
1111
weight: 2
12+
aliases: /operate/rs/installing-upgrading/get-started-docker/
1213
---
1314
{{< warning >}}
1415
Docker containers are currently only supported for development and test environments, not for production. Use [Redis Enterprise on Kubernetes]({{< relref "/operate/kubernetes" >}}) for a supported containerized deployment.

0 commit comments

Comments
 (0)