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

Careers search is too strict #981

Closed
clinton-fung opened this issue Jul 20, 2023 · 1 comment · Fixed by #1150
Closed

Careers search is too strict #981

clinton-fung opened this issue Jul 20, 2023 · 1 comment · Fixed by #1150

Comments

@clinton-fung
Copy link

The search functionality on https://canonical.com/careers does not return results that should be returned.

Setup

Given two roles with the following titles:

  • Software Engineer - Ubuntu Build Infrastructure
  • Software Engineering Manager - Ubuntu Build Infrastructure

Steps to reproduce

  1. Visit https://canonical.com/careers
  2. Type "ubuntu", "build", "infrastructure", "ubuntu build", "build infrastructure", or "ubuntu build infrastructure" into the search box
  3. Select "Search roles"

Expected behaviour

  • Search results for the provided search term are displayed.
  • Both the roles listed in the "Setup" section are part of the search results.

Actual behaviour

  • Search results for the provided search term are displayed.
  • Only one role is part of the search results.

Additional notes

  • Investigation highlighted that fuse.js is used for the search, and it checks title. description, departments, and skills fields, with threshold = 0.3.
  • In a prototype, I've tested that threshold = 0.7 returns the results that were previously missing, but of course there are many more other results that are also returned.
  • One suggestion is to use the ignoreLocation parameter with e.g. ignoreLocation = true, so that the entire text is eligible for search
  • Another suggestion is to update threshold = 0.7.
  • Yet another suggestion is to add tags functionality that can be used for searching
  • A final suggestion is to create a list of all words in both the title and description, remove certain common words that shouldn't be searchable ("the", "in", "and", etc), and then add this list to the searchable keys.
@leeoniya
Copy link

leeoniya commented Oct 3, 2023

A final suggestion is to create a list of all words in both the title and description, remove certain common words that shouldn't be searchable ("the", "in", "and", etc), and then add this list to the searchable keys.

shameless plug: https://github.com/leeoniya/uFuzzy
related: leeoniya/uFuzzy#7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants