Closed hawkup closed 4 months ago
When using a custom document ID and after running the update function, the ordering of search results randomly changes.
Here's a screen recording comparing the behavior between using a custom document ID and an auto-generated document ID.
https://github.com/oramasearch/orama/assets/2748846/2b532796-3f4b-4f39-8707-763bbd655215
Link to code example: https://codesandbox.io/p/sandbox/zealous-lederberg-mc48tf?file=%2Fsrc%2FApp.tsx%3A30%2C52
When using a custom document ID and after running the update function, the ordering of search results should not change.
OS: macOS Ventura 13.4.1 node: 18.19.0 orama: 2.0.5
Search
No response
@allevo could you take a look when you have a moment?
Thanks for the report! I reproduced the issue in a test and sent a PR to fix it!
@allevo Thank you so much. Tested it on the latest version, and it's fixed.
Describe the bug
When using a custom document ID and after running the update function, the ordering of search results randomly changes.
Here's a screen recording comparing the behavior between using a custom document ID and an auto-generated document ID.
https://github.com/oramasearch/orama/assets/2748846/2b532796-3f4b-4f39-8707-763bbd655215
To Reproduce
Link to code example: https://codesandbox.io/p/sandbox/zealous-lederberg-mc48tf?file=%2Fsrc%2FApp.tsx%3A30%2C52
Expected behavior
When using a custom document ID and after running the update function, the ordering of search results should not change.
Environment Info
Affected areas
Search
Additional context
No response