metacpan / metacpan-web

Web interface for MetaCPAN
http://metacpan.org
Other
411 stars 234 forks source link

Searching "foo" should find "libfoo" etc. #2739

Open wbraswell opened 1 year ago

wbraswell commented 1 year ago

Describe the bug Searching for a string such as "foo" should return results including the string "foo" in the name of the distribution, with obvious examples such as "libfoo" or "foo2" or "foo3" which should be, but are not, currently returned in the search results.

To Reproduce Steps to reproduce the behavior:

  1. Go to metacpan.org
  2. In the search text input, type "cmark_gfm", which should send you to https://metacpan.org/search?q=cmark_gfm with no results.
  3. Go back to metacpan.org
  4. In the search text input, type "libcmark_gfm", which should send you to https://metacpan.org/search?q=libcmark_gfm with 1 valid result.

Expected behavior The valid result of "Alien::libcmark_gfm" should be returned when searching for "cmark_gfm" without the leading "lib".

Desktop:

oalders commented 1 year ago

Probably could add this to https://github.com/metacpan/metacpan-web/issues/1231 and close this issue?

wbraswell commented 1 year ago

@oalders In bug #1231 you wrote "Individual searches can be broken into issues as they are tackled" Also, there has been no discussion in bug #1231 since 2016. For these reasons, I don not believe this bug report should be closed until it is actually fixed.