Hybrid search: Missing documents and inaccurate count value with a where clause
Closed this issue ยท 6 comments
nicolastoulemont commented
Describe the bug
Using the hybrid search with a where clause and a offset + a limit has two issues:
- The count value is upperbounded to the limit
- Some documents are incorrectly not returned.
To Reproduce
You can find a codesandbox with the issue here
More details on the issue on slack here
TLDR: The issue is due to pagination being apply twice with the hybrid search call-stack both on the uniqueTokenScores and within the fetchDocuments function.
Expected behavior
Correct document fetching and correct count values.
Environment Info
OS: MacOS
Node: v20.X
Affected areas
Search
Additional context
No response
micheleriva commented
/bounty 75
algora-pbc commented
๐ $75 bounty โข OramaSearch
Steps to solve:
- Start working: Comment
/attempt #730
with your implementation plan - Submit work: Create a pull request including
/claim #730
in the PR body to claim the bounty - Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts
Thank you for contributing to askorama/orama!
Add a bounty โข Share on socials
Attempt | Started (GMT+0) | Solution |
---|---|---|
๐ข @abhishek818 | Jun 6, 2024, 1:17:42 AM | #732 |
๐ข @rajeshj11 | Jun 6, 2024, 10:31:50 AM | #731 |
abhishek818 commented
/attempt #730
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@abhishek818 | 4 bounties from 3 projects | JavaScript, TypeScript |
Cancel attempt |
rajesh-jonnalagadda commented
/attempt #730
Algora profile | Completed bounties | Tech | Active attempts | Options |
---|---|---|---|---|
@rajeshj11 | 4 bounties from 3 projects | JavaScript, TypeScript, HTML |
Cancel attempt |
algora-pbc commented
๐ก @rajeshj11 submitted a pull request that claims the bounty. You can visit your bounty board to reward.
algora-pbc commented
๐๐ @rajeshj11 has been awarded $75! ๐๐