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

Order by core libs first in search results #327

Closed
Thimoteus opened this issue Aug 23, 2017 · 1 comment
Closed

Order by core libs first in search results #327

Thimoteus opened this issue Aug 23, 2017 · 1 comment
Labels
Milestone

Comments

@Thimoteus
Copy link

Mentioned here it'd be nice if names from core libs were displayed at the top, for example searching for apply, the definition of <*> isn't shown until the fourth listing.

@hdgarrood
Copy link
Collaborator

hdgarrood commented Dec 22, 2017

Perhaps it would be better to use number of reverse dependencies, i.e. a search result gets a small boost if it appears in a package which has more reverse dependencies (see also #292); that should achieve what's wanted here but also be useful for results outside of the core libraries.

@hdgarrood hdgarrood added this to the Approved milestone Dec 22, 2017
hdgarrood added a commit that referenced this issue Dec 25, 2017
Packages with more reverse dependencies are inserted into the trie
earlier, which means that they appear earlier in the search results.

This change means, for example, that the query "map" turns up the "map"
from Prelude as the very first result.

Fixes #327
hdgarrood added a commit that referenced this issue Dec 25, 2017
Packages with more reverse dependencies are inserted into the trie
earlier, which means that they appear earlier in the search results.

This change means, for example, that the query "map" turns up the "map"
from Prelude as the very first result.

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

No branches or pull requests

2 participants