Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ fuzzy SaaS #141

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: ✨ fuzzy SaaS #141

wants to merge 3 commits into from

Conversation

ecxyzzy
Copy link
Member

@ecxyzzy ecxyzzy commented Mar 11, 2024

Summary

Implement fuzzy search as a service through REST and GraphQL (searchCourses and searchInstructors, since GraphQL doesn't support tagged union/sum types).

The total number of results is returned in the count field in the payload, and the result set (containing at most the requested number of results starting from the offset) is returned in the results field.

Parameters

  • query: The string to fuzzy-search. Required.
  • resultType: The type of result to return exclusively, course or instructor. Both types of results will be returned if left undefined.
  • limit and offset: For pagination purposes, defaults to 10 and 0 respectively.

Issues

Closes #131.

@github-actions github-actions bot changed the title feat: fuzzy SaaS proof of concept (WIP) feat: ✨ fuzzy SaaS proof of concept (WIP) Mar 11, 2024
@ecxyzzy ecxyzzy changed the title feat: ✨ fuzzy SaaS proof of concept (WIP) feat: ✨ fuzzy SaaS Mar 11, 2024
@ecxyzzy ecxyzzy marked this pull request as ready for review March 11, 2024 04:47
@js0mmer js0mmer mentioned this pull request Apr 19, 2024
5 tasks
Copy link
Member

@js0mmer js0mmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just from some quick tests, performance looks good but some results are unexpected. searching for "ics" seems to be a problem since the course names are actually I&C SCI, although I've managed to have a similar issue with art. I think some kind of weighting so the department name is more important than the course title could help with the results here.

see icssc/peterportal-client#466 (comment) and icssc/peterportal-client#466 (comment)

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.

Implement fuzzy search-as-a-service for courses and instructors
2 participants