Skip to content

Commit 3977ced

Browse files
Apply suggestions from code review
Co-authored-by: andy-stark-redis <[email protected]>
1 parent 98ac2c5 commit 3977ced

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/develop/interact/search-and-query/advanced-concepts/aggregation-syntax.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ weight: 2
1919

2020
[`FT.AGGREGATE`]({{< relref "/commands/ft.aggregate" >}}) is a powerful Redis Query Engine (RQE) command for performing advanced data aggregation, filtering, sorting, and transformations on indexed hash or JSON documents. This reference page provides a structured breakdown of syntax, ordering rules, and best practices.
2121

22-
The [main aggregations page]({{< relref "/develop/interact/search-and-query/advanced-concepts/aggregations" >}}) has a simple diagram showing how `FT.AGGREGATE` pipelines are constructed, but it doesn't tell the whole story. For example, it's possible to create more complex aggregation pipelines by applying multiple `REDUCE` functions under a single `GROUPBY` clause, or you can chain groupings and mix in additional mapping steps:
22+
The [main aggregations page]({{< relref "/develop/interact/search-and-query/advanced-concepts/aggregations" >}}) has a simple diagram showing how `FT.AGGREGATE` pipelines are constructed, but it doesn't tell the whole story. For example, you can create more complex aggregation pipelines by applying multiple `REDUCE` functions under a single `GROUPBY` clause, or you can chain groupings and mix in additional mapping steps:
2323

2424
`GROUPBY` ... `REDUCE` ... `APPLY` ... `GROUPBY` ... `REDUCE`
2525

@@ -46,9 +46,9 @@ Other keywords will be discussed toward the end of this page.
4646

4747
## When to use `@`
4848

49-
Fields must be preceded by `@` in the following circumstances:
49+
You must add `@` at the start of a field name in the following circumstances:
5050

51-
- When referencing fields loaded from documents. In the following example, `price` is a document field and must be prefixed wit `@`.
51+
- When referencing fields loaded from documents. In the following example, `price` is a document field and must be prefixed with `@`.
5252

5353
```sh
5454
FT.AGGREGATE products "*"
@@ -124,7 +124,7 @@ FT.AGGREGATE products "*"
124124

125125
## Multiple APPLY operations followed by GROUPBY and REDUCE
126126

127-
`APPLY` can be used in various ways before and after `GROUPBY` and `REDUCE`.
127+
You can use `APPLY` in various ways before and after `GROUPBY` and `REDUCE`.
128128

129129
```sh
130130
FT.AGGREGATE products "*"
@@ -139,7 +139,7 @@ FT.AGGREGATE products "*"
139139

140140
## FILTER and PARAMS
141141

142-
`FILTER` is used to remove unwanted records, while `PARAMS` allows parameterized queries.
142+
Use `FILTER` to remove unwanted records, and `PARAMS` to pass values to parameterized queries.
143143

144144
```sh
145145
FT.AGGREGATE products "*"

0 commit comments

Comments
 (0)