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

Fixing search to elevate exact matches #1162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bnormoyle
Copy link

This always super annoys me when I'm searching for a specific mod with a name I already know. This reorders the exact matches to the top of the list.

@CLAassistant
Copy link

CLAassistant commented Jan 14, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@MythicManiac MythicManiac left a comment

Choose a reason for hiding this comment

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

Did you test if this introduces noticeable lag on larger communities (e.g. lethal company)? There have been some search performance issues before, the main problem is how iteration based everything to do with the mod list is atm (overall, not just this PR change).

This looks like it shouldn't cause too significant issues, but perhaps it'd be worth restricting it to only run when the result set is already somewhat narrowed down? It should also be fairly trivial to do this in a single iteration rather than two like it does now.

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.

None yet

3 participants