Skip to content

Commit

Permalink
Remove redundant UNF sub-option in JSON example (#2418)
Browse files Browse the repository at this point in the history
UNF option is not required with JSON and makes the 
example harder to read and understand.
  • Loading branch information
uglide committed Feb 21, 2023
1 parent 9ffae59 commit 1be8422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/search-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ try {
await client.ft.create('idx:users', {
'$.name': {
type: SchemaFieldTypes.TEXT,
SORTABLE: 'UNF'
SORTABLE: true
},
'$.age': {
type: SchemaFieldTypes.NUMERIC,
Expand Down

0 comments on commit 1be8422

Please sign in to comment.