Skip to content

Commit 9dccd9a

Browse files
authored
Update README.md
1 parent 5a41d6d commit 9dccd9a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

packages/search/README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@ Before we can perform any searches, we need to tell RediSearch how to index our
1818
await client.ft.create('idx:animals', {
1919
name: {
2020
type: SchemaFieldTypes.TEXT,
21-
sortable: true
21+
SORTABLE: true
2222
},
23-
species: SchemaFieldTypes.TAG,
24-
age: SchemaFieldTypes.NUMERIC
25-
}, {
26-
ON: 'HASH',
27-
PREFIX: 'noderedis:animals'
28-
}
29-
);
23+
species: SchemaFieldTypes.TAG,
24+
age: SchemaFieldTypes.NUMERIC
25+
}, {
26+
ON: 'HASH',
27+
PREFIX: 'noderedis:animals'
28+
});
3029
```
3130

3231
See the [`FT.CREATE` documentation](https://oss.redis.com/redisearch/Commands/#ftcreate) for information about the different field types and additional options.

0 commit comments

Comments
 (0)