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

Optionally restrict searches to package or function results #290

Open
hdgarrood opened this issue Mar 12, 2017 · 5 comments
Open

Optionally restrict searches to package or function results #290

hdgarrood opened this issue Mar 12, 2017 · 5 comments
Labels

Comments

@hdgarrood
Copy link
Collaborator

Suggestion from @marick. I'm imagining 3 radio buttons just above the list of search results:

  • Show packages and functions (default)
  • Show packages only
  • Show functions only

This, together with #147, should make it much easier to find packages for a particular task if you aren't already familiar with the ecosystem.

@paf31
Copy link
Contributor

paf31 commented Mar 12, 2017

What about three sections with links at the top to the top of each section?

@hdgarrood
Copy link
Collaborator Author

I think that might pose an issue if we have an upper bound on the number of results (which, if I remember correctly, we do)?

@paf31
Copy link
Contributor

paf31 commented Mar 12, 2017

Well we could impose a limit in each category separately.

@hdgarrood
Copy link
Collaborator Author

Ok, true. I think both would work, yeah. I guess it would be better to separate function and package results.

@hdgarrood
Copy link
Collaborator Author

Actually on second thoughts I think my original suggestion is best, as I think it makes the most sense to interleave different types of results by default according to relevance. Having separate sections could mean that the first few results you see are only very tenuously related to the query — imagine a case where the section which is displayed first has lots of low-relevance results, and the section displayed after that has lots of high-relevance results.

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