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

Search: show best match first #487

Open
3 tasks done
Saturo78 opened this issue Jan 21, 2025 · 1 comment
Open
3 tasks done

Search: show best match first #487

Saturo78 opened this issue Jan 21, 2025 · 1 comment
Labels
⬆️ enhancement New feature or request

Comments

@Saturo78
Copy link

What is the problem you are trying to solve with this feature?

when searching e.g. for a location, the best result should be displayed first.

Image

What is the solution you are proposing?

No response

What alternatives have you considered?

No response

Additional context

No response

Contributions

  • I have searched through existing issues and feature requests to see if my idea has already been proposed.
  • If this feature is accepted, I would be willing to help implement and maintain this feature.
  • If this feature is accepted, I'm willing to sponsor the development of this feature.
@Saturo78 Saturo78 added the ⬆️ enhancement New feature or request label Jan 21, 2025
@tonyaellie
Copy link
Collaborator

Seems like this may be an issue with how lunr works, from a little experimenting I think it treats - as a space and then its basically just searching for anything with A2 and 4 and 1 in, ignoring order, honestly I would be tempted to switch off of lunr to something like fuzzysort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants