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

Enable package search #219

Open
dogweather opened this issue Feb 3, 2017 · 1 comment
Open

Enable package search #219

dogweather opened this issue Feb 3, 2017 · 1 comment

Comments

@dogweather
Copy link

I came to Stackage to search for split, as it's referred to in a .cabal file. But I get a list of results which don't seem to be ordered; a list of functions named split from various packages:

screen shot 2017-02-02 at 7 32 35 pm

Search will return the module only if I already know it's namespaced module name:

screen shot 2017-02-02 at 7 36 11 pm

And now, the search engine results seem to be ordered for relevance.

Summary

  1. Facilitate package name searches either by ranking them high in relevance or displaying them parallel to function searches.
  2. Use package name match as a component of relevance generally.

I'm happy to help implement these.

@snoyberg
Copy link
Contributor

snoyberg commented Feb 5, 2017

The search functionality is just an API search, but I don't see a problem with checking if the searched name matches a package name and providing that as the first search result. If you'd like to take a stab at a PR for that, I'd be happy to review.

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

No branches or pull requests

3 participants