Skip to content

Commit 5986235

Browse files
authored
Update intro.md
1 parent d7a2e0e commit 5986235

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/uc/intro.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can then easily match a user to their preferred type of bike within a reques
5454

5555
```redis:[run_confirmation=true]
5656
// Match leisure bikes within a price of 200 and 300
57-
FT.SEARCH idx:smpl_bicycle "@type:{leisure} @price:[200 300]" RETURN 4 brand model type price
57+
FT.SEARCH idx:smpl_bicycle "@type:{mountain} @price:[400 450]" RETURN 4 brand model type price
5858
```
5959

6060
### Location-based search
@@ -64,12 +64,11 @@ Location-based search involves finding and retrieving data that is relevant to a
6464
```redis:[run_confirmation=true]
6565
// Add a restaurant as JSON
6666
JSON.SET sample_restaurant:341 $ '{
67-
"name": "Galusca",
68-
"cuisine": "Moldovan",
69-
"location": "47.0159,28.8107"
67+
"name": "Zen Galushca",
68+
"cuisine": "Japanese",
69+
"location": "-98.1221,30.8232"
7070
}'
7171
```
72-
7372
```redis:[run_confirmation=true]
7473
//Create an index of your restaurant data
7574
FT.CREATE "idx:smpl_restaurant"
@@ -82,8 +81,8 @@ FT.CREATE "idx:smpl_restaurant"
8281
```
8382

8483
```redis:[run_confirmation=true]
85-
// Find a Japanese restaurant within a 20 mile radius
86-
FT.SEARCH idx:smpl_restaurant "@cuisine:{japanese} @location:[-98.1179,30.671 20 mi]" RETURN 2 restaunt_name location
84+
// Find a Japanese restaurant within a 50 mile radius
85+
FT.SEARCH idx:smpl_restaurant "@cuisine:{japanese} @location:[-98.1179,30.671 50 mi]" RETURN 2 restaunt_name location
8786
```
8887

8988
### Session store

0 commit comments

Comments
 (0)