Skip to content

fix: improve search scoring for numeric queries#33

Open
xwxb wants to merge 1 commit intoRapptz:masterfrom
xwxb:fix/issue-30
Open

fix: improve search scoring for numeric queries#33
xwxb wants to merge 1 commit intoRapptz:masterfrom
xwxb:fix/issue-30

Conversation

@xwxb
Copy link
Copy Markdown

@xwxb xwxb commented May 3, 2026

This PR improves the search scoring logic for pure numeric queries, such as episode numbers.

When a query is purely numeric (e.g., 26), we now also attempt to match it against the filename with an e prefix (e.g., e26). This ensures that files using the S01E26 format rank appropriately alongside files using simpler - 26 notation.

Fixes #30

For pure numeric queries, also attempt to match against an 'e' prefixed
version (e.g. '26' matches 'e26'). This allows filenames using 'S01E26'
notation to rank consistently with those using '- 26 ' notation.

Fixes Rapptz#30
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.

Inconsistent number filtering

1 participant