Skip to content

[WIP] Improves relevance scoring of search terms - #2419

Open
tompollard wants to merge 2 commits into
devfrom
tp/search
Open

[WIP] Improves relevance scoring of search terms#2419
tompollard wants to merge 2 commits into
devfrom
tp/search

Conversation

@tompollard

Copy link
Copy Markdown
Member

This PR makes some changes the search algorithm:

  1. Updates pre-processing of search terms:

    • Case normalization (e.g., "MIMIC-IV" matches "mimic-iv")
    • Whitespace normalization
  2. Improves relevance scoring:

    • Higher weight for exact matches (e.g., "MIMIC-IV" matches "MIMIC-IV" more strongly than "MIMIC")
    • Prioritizes title matches (e.g., "MIMIC" in title ranks higher than in description)

Also adds tests.

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