Skip to content

Commit 9f4de4c

Browse files
authored
Merge pull request RediSearch#15 from simonprickett/patch-9
Minor typo / phrasing suggestions.
2 parents 1a7b411 + ed7278e commit 9f4de4c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/009-advanced-features.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22

33
## Create an index using a Filter
44

5-
In the previous examples, the indices have been created using a `PREFIX`, where all the keys that are matching the type and the prefix are indexed.
5+
In the previous examples, the indices were created using a `PREFIX`, where all the keys matching the type and prefix are indexed.
66

77
It is also possible to create an index using a filter, for example create an index with all the "Drama" movies released between 1990 and 2000 (2000 not included).
88

99
The [`FILTER`](https://oss.redislabs.com/redisearch/Aggregations/#filter_expressions)` expression is using the [aggregation filter syntax(https://oss.redislabs.com/redisearch/Aggregations/#filter_expressions)], for example for the genre and release year it will be
1010

1111
* `FILTER "@genre=='Drama' && @release_year>=1990 && @release_year<2000"`
1212

13-
So when you create the index
13+
So when you create the index:
1414

1515
`FT.CREATE idx:drama ON Hash PREFIX 1 "movie:" FILTER "@genre=='Drama' && @release_year>=1990 && @release_year<2000" SCHEMA title TEXT SORTABLE release_year NUMERIC SORTABLE `
1616

17-
You can run the `FT.INFO idx:drama` command to look at the index defintions and statistics.
17+
You can run the `FT.INFO idx:drama` command to look at the index definitions and statistics.
1818

1919
Notes
2020
* The `PREFIX` is not optional.
21-
* In this appliation this index is not usefull since you can get the same data from the `idx:movie`
21+
* In this appliation this index is not useful since you can get the same data from the `idx:movie`
2222

2323

24-
You can check that the index has the good data indexed for by running the following queries that should return the same number of documents.
24+
You can check that the data has been indexed by running the following queries that should return the same number of documents.
2525

2626
On `idx:drama`
2727

0 commit comments

Comments
 (0)