Skip to content

search: keywordSearch score goes negative after 10 results #28

@RobertLD

Description

@RobertLD

In src/core/search.ts, the keywordSearch() fallback calculates scores as 1 - index * 0.1, which becomes negative after 10 results. Scores should be clamped to [0, 1] range.

Additionally, keywordSearch() and fts5Search() do not implement the options.minRating filter — only vector search handles it. This makes filtering behavior inconsistent across search strategies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions