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
Copy file name to clipboardExpand all lines: content/commands/ft._list.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,15 +38,25 @@ In the future, a [`SCAN`]({{< relref "/commands/scan" >}}) type of command will
38
38
contains a large number of indices.
39
39
{{% /alert %}}
40
40
41
-
## Return
42
-
43
-
[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) with index names.
44
-
45
41
## Examples
46
42
47
43
```sql
48
44
FT._LIST
49
45
1) "idx"
50
46
2) "movies"
51
47
3) "imdb"
52
-
```
48
+
```
49
+
50
+
## Return information
51
+
52
+
{{< multitabs id="ft-_list-return-info"
53
+
tab1="RESP2"
54
+
tab2="RESP3" >}}
55
+
56
+
[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of index names as [simple strings]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}).
57
+
58
+
-tab-sep-
59
+
60
+
[Set]({{< relref "/develop/reference/protocol-spec#sets" >}}) of index names as [simple strings]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}).
Copy file name to clipboardExpand all lines: content/commands/ft.aggregate.md
+25-8Lines changed: 25 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -354,12 +354,7 @@ You can use `@__score` in a pipeline as shown in the following example:
354
354
selects the dialect version under which to execute the query. If not specified, the query will execute under the default dialect version set during module initial loading or via [`FT.CONFIG SET`]({{< relref "commands/ft.config-set/" >}}) command.
355
355
</details>
356
356
357
-
## Return
358
-
359
-
FT.AGGREGATE returns an array reply where each row is an array reply and represents a single aggregate result.
360
-
The [integer reply]({{< relref "develop/reference/protocol-spec#resp-integers" >}}) at position `1` does not represent a valid value.
361
-
362
-
### Return multiple values
357
+
## Return multiple values
363
358
364
359
See [Return multiple values]({{< relref "commands/ft.search#return-multiple-values/" >}}) in [`FT.SEARCH`]({{< relref "commands/ft.search/" >}})
365
360
The `DIALECT` can be specified as a parameter in the FT.AGGREGATE command. If it is not specified, the `DEFAULT_DIALECT` is used, which can be set using [`FT.CONFIG SET`]({{< relref "commands/ft.config-set/" >}}) or by passing it as an argument to the `redisearch` module when it is loaded.
@@ -489,13 +484,35 @@ Next, count GitHub events by user (actor), to produce the most active users.
489
484
490
485
</details>
491
486
487
+
## Return information
488
+
489
+
{{< multitabs id="ft-aggregate-return-info"
490
+
tab1="RESP2"
491
+
tab2="RESP3" >}}
492
+
493
+
One of the following:
494
+
*[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) with the first element being the total number of results, followed by result rows as [arrays]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of field-value pairs.
495
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: incorrect number of arguments, non-existent index, invalid query syntax.
496
+
497
+
-tab-sep-
498
+
499
+
One of the following:
500
+
*[Map]({{< relref "/develop/reference/protocol-spec#maps" >}}) with the following fields:
501
+
-`attributes`: [Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of attribute names.
502
+
-`format`: [Simple string]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) - result format.
-`total_results`: [Integer]({{< relref "/develop/reference/protocol-spec#integers" >}}) - total number of results.
505
+
-`warning`: [Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of warning messages.
506
+
*[Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: incorrect number of arguments, non-existent index, invalid query syntax.
Copy file name to clipboardExpand all lines: content/commands/ft.config-get.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,10 +48,6 @@ Retrieve configuration options
48
48
is name of the configuration option, or '*' for all.
49
49
</details>
50
50
51
-
## Return
52
-
53
-
FT.CONFIG GET returns an array reply of the configuration name and value.
54
-
55
51
## Examples
56
52
57
53
<detailsopen>
@@ -140,9 +136,23 @@ FT.CONFIG GET returns an array reply of the configuration name and value.
140
136
{{< / highlight >}}
141
137
</details>
142
138
139
+
## Return information
140
+
141
+
{{< multitabs id="ft-config-get-return-info"
142
+
tab1="RESP2"
143
+
tab2="RESP3" >}}
144
+
145
+
[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of [arrays]({{< relref "/develop/reference/protocol-spec#arrays" >}}), where each sub-array contains a configuration option name and its value.
146
+
147
+
-tab-sep-
148
+
149
+
[Map]({{< relref "/develop/reference/protocol-spec#maps" >}}) where keys are configuration option names and values are their corresponding values.
0 commit comments