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
Affected areas
Search
Additional context
No response
Describe the bug
Using the hybrid search with a where clause and a offset + a limit has two issues:
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
Affected areas
Search
Additional context
No response