Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Sorted Suggestions #205

Closed
alfonso-noriega opened this issue Mar 26, 2021 · 1 comment
Closed

Sorted Suggestions #205

alfonso-noriega opened this issue Mar 26, 2021 · 1 comment

Comments

@alfonso-noriega
Copy link
Contributor

Current behavior

When performing a suggestion search the results are sorted by doc count by default. A suggestion search like "Lights On" will return all results which contains "lights*", "on*" and "lights* on*" where most probably a shorter term containing "on" will have more hits therefore returned first.

Expected behavior

When creating a suggestion search it should be possible to define a sorting by longest matching term

@alfonso-noriega
Copy link
Contributor Author

A sort implementation has been done where the results are scored by number of input terms included in the final result . ie:

  • suggestion input 'la cro'
  • results: Lara Croft; score 2
    Crocodile Dundee; score 1

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

No branches or pull requests

1 participant