StackExchange / NRediSearch

Other
31 stars 9 forks source link

NRediSearch Does not support Sortable Tags in Index Definition Schema Object #15

Open dcoopertd opened 3 years ago

dcoopertd commented 3 years ago

When creating a new schema like this:

var schema = new Schema().AddTagField("TagField", "|") ;

There is no option to make it sortable. For example there is no AddSortableTagField() method like there is for text fields. According to https://oss.redis.com/redisearch/1.6/Commands/#ftcreate , tag fields can clearly be sortable.

dcoopertd commented 3 years ago

I also wanted to point out: Notice the separator must go before sortable or a syntax error will occur:

FT.CREATE idx ON HASH PREFIX 1 foo:bar SCHEMA Tag1 TAG SEPARATOR "|" SORTABLE