Skip to content

Commit c2265cc

Browse files
authored
Merge pull request RediSearch#14 from simonprickett/patch-8
Small spelling and phrasing updates.
2 parents 9f4de4c + 778a3ba commit c2265cc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/008-aggregation.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Aggregation
22

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".
44

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.
66

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.
88

9-
Let's now take some examples.
9+
Let's check out some examples.
1010

1111
## Group By & Sort By
1212

@@ -133,9 +133,9 @@ Let's now take some examples.
133133
</b></i>
134134
</summary>
135135

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.
137137

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.
139139

140140
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.
141141

@@ -192,9 +192,9 @@ Using the date/time Apply functions it is possible to extract the day of the wee
192192

193193
## Filter
194194

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}"`)
196196

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.
198198

199199

200200
<details>

0 commit comments

Comments
 (0)