File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ Before we can perform any searches, we need to tell RediSearch how to index our
19
19
``` javascript
20
20
await client .ft .create (' idx:animals' , {
21
21
name: {
22
- type: SchemaFieldTypes .TEXT ,
22
+ type: SCHEMA_FIELD_TYPE .TEXT ,
23
23
SORTABLE : true
24
24
},
25
- species: SchemaFieldTypes .TAG ,
26
- age: SchemaFieldTypes .NUMERIC
25
+ species: SCHEMA_FIELD_TYPE .TAG ,
26
+ age: SCHEMA_FIELD_TYPE .NUMERIC
27
27
}, {
28
28
ON : ' HASH' ,
29
29
PREFIX : ' noderedis:animals'
@@ -91,15 +91,15 @@ One way we might choose to index these documents is as follows:
91
91
``` javascript
92
92
await client .ft .create (' idx:users' , {
93
93
' $.name' : {
94
- type: SchemaFieldTypes .TEXT ,
94
+ type: SCHEMA_FIELD_TYPE .TEXT ,
95
95
SORTABLE : ' UNF'
96
96
},
97
97
' $.age' : {
98
- type: SchemaFieldTypes .NUMERIC ,
98
+ type: SCHEMA_FIELD_TYPE .NUMERIC ,
99
99
AS : ' age'
100
100
},
101
101
' $.coins' : {
102
- type: SchemaFieldTypes .NUMERIC ,
102
+ type: SCHEMA_FIELD_TYPE .NUMERIC ,
103
103
AS : ' coins'
104
104
}
105
105
}, {
You can’t perform that action at this time.
0 commit comments