icssc / peterportal-client

A web application to aid UCI students with course discovery and planning.
https://peterportal.org
MIT License
15 stars 12 forks source link

"I&C SCI 46" Should be the first result for the search "ICS 46", not on page 3 #456

Open Awesome-E opened 6 months ago

Awesome-E commented 6 months ago

Reproduce:

  1. Search for "ICS 46"

Expected: I&C SCI 46 (Data structure implementation + analysis) shows as the first result Actual: the course number seems to take higher priority even when not a full match, causing ICS 46 to show on page 3 for an exact search

js0mmer commented 6 months ago

Interesting. Never noticed this since I've never capitalized, just searched up "ics 46" which works. Short term fix is to convert query to lower case before calling websoc fuzzy search.

In the future, fuzzy search will be reworked. https://github.com/icssc/peterportal-api-next/issues/131