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
1919``` javascript
2020await client .ft .create (' idx:animals' , {
2121 name: {
22- type: SchemaFieldTypes .TEXT ,
22+ type: SCHEMA_FIELD_TYPE .TEXT ,
2323 SORTABLE : true
2424 },
25- species: SchemaFieldTypes .TAG ,
26- age: SchemaFieldTypes .NUMERIC
25+ species: SCHEMA_FIELD_TYPE .TAG ,
26+ age: SCHEMA_FIELD_TYPE .NUMERIC
2727}, {
2828 ON : ' HASH' ,
2929 PREFIX : ' noderedis:animals'
@@ -91,15 +91,15 @@ One way we might choose to index these documents is as follows:
9191``` javascript
9292await client .ft .create (' idx:users' , {
9393 ' $.name' : {
94- type: SchemaFieldTypes .TEXT ,
94+ type: SCHEMA_FIELD_TYPE .TEXT ,
9595 SORTABLE : ' UNF'
9696 },
9797 ' $.age' : {
98- type: SchemaFieldTypes .NUMERIC ,
98+ type: SCHEMA_FIELD_TYPE .NUMERIC ,
9999 AS : ' age'
100100 },
101101 ' $.coins' : {
102- type: SchemaFieldTypes .NUMERIC ,
102+ type: SCHEMA_FIELD_TYPE .NUMERIC ,
103103 AS : ' coins'
104104 }
105105}, {
You can’t perform that action at this time.
0 commit comments