Skip to content

Search by partial package name #208

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

Closed
edsko opened this issue Apr 29, 2014 · 6 comments
Closed

Search by partial package name #208

edsko opened this issue Apr 29, 2014 · 6 comments

Comments

@edsko
Copy link
Contributor

edsko commented Apr 29, 2014

For example, searching for diagrams- finds nothing, while it should find diagrams-pdf, diagrams-postscript, etc.

@dcoutts
Copy link
Contributor

dcoutts commented May 2, 2014

Searching for diagrams works of course.

The problem is that integrating substring search into a keyword-based search is rather tricky and ad-hoc, how are we to score a substring hit?

We can ad-hoc strip '-' off the search term of course :-)

@edsko
Copy link
Contributor Author

edsko commented May 2, 2014

Searching for diagrams works only by accident (because the various diagrams packages have diagrams in the description) and gives too many results. I would say that a package with a name that has the search term as a substring should be scored highly.

@dcoutts
Copy link
Contributor

dcoutts commented May 21, 2014

So honestly I'm not sure how to integrate substring search into a keyword-based search in a principled way.

@gbaz
Copy link
Contributor

gbaz commented Apr 24, 2015

The correct thing seems to me to be to consider any word with a matching substring a "keyword" with a score proportional to the ratio substring/string?

@ghost
Copy link

ghost commented May 16, 2017

@danchoi What has your experience with indexing documents lead you to conclude about this?

@gbaz
Copy link
Contributor

gbaz commented Sep 30, 2017

"Searching for diagrams works only by accident (because the various diagrams packages have diagrams in the description)" -- this is not true (at least anymore). It works because we split diagrams-x package names and we have exact matches on the diagrams component. This seems fine to me?

@gbaz gbaz closed this as completed Sep 30, 2017
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