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

Boost search results where search string is at the beginning. #2803

Closed
romainruaud opened this issue Dec 16, 2022 · 1 comment · Fixed by #2886
Closed

Boost search results where search string is at the beginning. #2803

romainruaud opened this issue Dec 16, 2022 · 1 comment · Fixed by #2886
Assignees
Labels

Comments

@romainruaud
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Main use case is the following :

  • I search for "orange" because I want to see the fruit.
  • but I mainly see "orange juice" or "gingerbread with orange and pumpkin"

Describe the solution you'd like
I'd like to be able to tell the engine that :

  • if the search string is found at the beginning, it must have a better score than when it's fetch inside the string.
  • if the search string is "the only word searched", Eg the product name is "orange" and I searched for "orange", it must have an higher score.

Describe alternatives you've considered
Main alternative is to create a boost like :

  • search query is "orange".
  • Boost products belonging to "fruits" category.

But it's quite a pain to do with a large catalog with many categories.

@romainruaud
Copy link
Collaborator Author

Fixed by #2886

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

Successfully merging a pull request may close this issue.

1 participant