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
LIMIT for NUMERIC fields not working #61
Comments
This is unrelated to numeric indexes, but a bug in paging when there are less results than 10. Will be fixed, thanks for catching this. |
Okay, it's not actually what happens. The problem is that all documents have the same score so the compare function was unstable. I've changed it a bit and it seems to be working better. If you want to sort by the numeric property, take a look at sortable properties and the SORTBY argument in the docs. http://redisearch.io/Sorting/ |
Got it, thanks. Is it already in master? |
yes |
Excuse me, but seems that i have another kind of problem. Imagine i want to organize paging functionality with page-size = 4 create an index and add five documents to it:
Then i want to get first page with 4 elements in it:
response correct Now i want go see last element:
Incorrect - must contains only I think i can try fix it in backend and if it is last page - trim result and use just a tail, but it looks like a problem |
The semantics are |
Please, let me know if it will be fixed. May be open new issue about that? |
Yes, I prefer another issue if you don't mind. |
Yep, thanks, I'll create it |
steps to reproduce
The text was updated successfully, but these errors were encountered: