NRedisStack icon indicating copy to clipboard operation
NRedisStack copied to clipboard

Index.Attribute throws error for sortable fields

Open ivanjt-srai opened this issue 1 year ago • 4 comments

NRedisStack Version: 0.12.0 Redis Stack Version: image

Description: For sorted attributes , index.Attributes throws request.System.IndexOutOfRangeException: Index was outside the bounds of the array. image

This is how i add text field: schema.AddTextField(item.Key, sortable: true);

This is how index is created

var ftCreateParams = new FTCreateParams().On(IndexDataType.HASH) .Temporary(expiryTime) .Prefix(payloadPrefix);

note that , almost all of the fields are marked as sortable

This issue does not happen when i mark the fields false for sortable.

Please help !

ivanjt-srai avatar Apr 26 '24 11:04 ivanjt-srai

Hi @ivanjt-srai , I'm on it 👍

shacharPash avatar Apr 30 '24 10:04 shacharPash

@ivanjt-srai this PR should solve it, LMK what you think.

shacharPash avatar May 01 '24 08:05 shacharPash

sure @shacharPash thanks for picking it up, when can I expect the fix to be available to use?

ivanjt-srai avatar May 02 '24 04:05 ivanjt-srai

@ivanjt-srai In the next few days we will merge it to master

shacharPash avatar May 05 '24 14:05 shacharPash

do we have any update on this @shacharPash ?

ivanjt-srai avatar Aug 01 '24 06:08 ivanjt-srai

do we have any update on this @shacharPash ?

@atakavci

shacharPash avatar Aug 01 '24 07:08 shacharPash

@ivanjt-srai The fix has been merged into the main branch.

uglide avatar Aug 07 '24 08:08 uglide