Skip to content

fix: group_by with hybrid search when no keyword matches exist#2738

Open
ozanarmagan wants to merge 7 commits intotypesense:v31from
ozanarmagan:v31-fix-grouping-hybrid
Open

fix: group_by with hybrid search when no keyword matches exist#2738
ozanarmagan wants to merge 7 commits intotypesense:v31from
ozanarmagan:v31-fix-grouping-hybrid

Conversation

@ozanarmagan
Copy link
Contributor

Change Summary

When hybrid search with group_by has no keyword matches, since raw_results_kvs is empty, we don't do the second pass. However, we fetch the results of the vector search in second pass when doing hybrid search. This PR updates early exit logic by adding an extra condition by checking if it is hybrid search.

PR Checklist

@kishorenc
Copy link
Member

Fixes #2723

@ozanarmagan ozanarmagan changed the base branch from v30 to v31 March 4, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants