Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Index.Attribute throws error for sortable fields #291

Open
ivanjt-srai opened this issue Apr 26, 2024 · 4 comments · May be fixed by #295
Open

Index.Attribute throws error for sortable fields #291

ivanjt-srai opened this issue Apr 26, 2024 · 4 comments · May be fixed by #295
Labels
bug Something isn't working

Comments

@ivanjt-srai
Copy link

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 !

@shacharPash
Copy link
Collaborator

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

@shacharPash
Copy link
Collaborator

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

@shacharPash shacharPash added the bug Something isn't working label May 1, 2024
@ivanjt-srai
Copy link
Author

ivanjt-srai commented May 2, 2024

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

@shacharPash
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants