|
1 | 1 | # Aggregation
|
2 | 2 |
|
3 |
| -A common need for application, in addition to retrieving information as a document list, like you have done with the "`FT.SEARCH`" command, is to do some "aggregation". |
| 3 | +A common need for applications, in addition to retrieving information as a document list, like you have done with the "`FT.SEARCH`" command, is to do some "aggregation". |
4 | 4 |
|
5 |
| -For example if we look at the movie documents, you may want to retrieve the number of movies group by release year starting with the most recents ones. |
| 5 | +For example if we look at the movie documents, you may want to retrieve the number of movies grouped by release year starting with the most recent ones. |
6 | 6 |
|
7 |
| -For this, RediSearch is providing the FT.AGGREGATE command, the aggregation are describe as data processing pipeline. |
| 7 | +For this, RediSearch provides the FT.AGGREGATE command, with aggregations described as a data processing pipeline. |
8 | 8 |
|
9 |
| -Let's now take some examples. |
| 9 | +Let's check out some examples. |
10 | 10 |
|
11 | 11 | ## Group By & Sort By
|
12 | 12 |
|
@@ -133,9 +133,9 @@ Let's now take some examples.
|
133 | 133 | </b></i>
|
134 | 134 | </summary>
|
135 | 135 |
|
136 |
| -The `idx:user` index contains the last_login field. This field stores the loast login time as EPOC timestamp. |
| 136 | +The `idx:user` index contains the last_login field. This field stores the last login time as an EPOC timestamp. |
137 | 137 |
|
138 |
| -RediSearch aggregation allow your to apply transformation to each record. This is done using the [APPLY](https://oss.redislabs.com/redisearch/Aggregations/#apply_expressions) parameter. |
| 138 | +RediSearch aggregation allows you to apply transformations to each record. This is done using the [APPLY](https://oss.redislabs.com/redisearch/Aggregations/#apply_expressions) parameter. |
139 | 139 |
|
140 | 140 | For this example you have to use a [date/time](https://oss.redislabs.com/redisearch/Aggregations/#list_of_datetime_apply_functions) function to extract the month and year from the timestamp.
|
141 | 141 |
|
@@ -192,9 +192,9 @@ Using the date/time Apply functions it is possible to extract the day of the wee
|
192 | 192 |
|
193 | 193 | ## Filter
|
194 | 194 |
|
195 |
| -In the previous example you have use the `query string` parameter to select all documents (`"*"`) or a subset of the documents (`"@gender:{female}"`) |
| 195 | +In the previous example you used the `query string` parameter to select all documents (`"*"`) or a subset of the documents (`"@gender:{female}"`) |
196 | 196 |
|
197 |
| -It is also possible to filter the result using a predicate expression relating to values in each result. TThey are is applied post-query and relate to the current state of the pipeline. This is done using the [FILTER](https://oss.redislabs.com/redisearch/Aggregations/#filter_expressions) parameter. |
| 197 | +It is also possible to filter the results using a predicate expression relating to values in each result. This is applied post-query and relates to the current state of the pipeline. This is done using the [FILTER](https://oss.redislabs.com/redisearch/Aggregations/#filter_expressions) parameter. |
198 | 198 |
|
199 | 199 |
|
200 | 200 | <details>
|
|
0 commit comments