Skip to content

fix(search): ignore blank queries for name bonus#1008

Open
jiangyq9 wants to merge 1 commit into
colbymchenry:mainfrom
jiangyq9:fix/blank-query-name-bonus
Open

fix(search): ignore blank queries for name bonus#1008
jiangyq9 wants to merge 1 commit into
colbymchenry:mainfrom
jiangyq9:fix/blank-query-name-bonus

Conversation

@jiangyq9

Copy link
Copy Markdown

Summary

  • return no name-match boost for empty or whitespace-only queries
  • add a regression test covering both empty and whitespace-only inputs

Fixes #984

Testing

  • pnpm exec vitest run tests/context-ranking.test.ts
  • pnpm exec tsc --noEmit

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.

1 participant