metacpan-web icon indicating copy to clipboard operation
metacpan-web copied to clipboard

Main search should smart-match English customs when searching POD.

Open FGasper opened this issue 7 years ago • 2 comments
trafficstars

I noticed recently that searches on these provide significantly different results:

  • Let’s Encrypt (note curly-quote)
  • Let's Encrypt (straight-quote)
  • Lets Encrypt

It seems that, given that this search seems to prioritize English text rather than code, it would be useful to have some “fudging” applied for common string variants—punctuation, misspelling, etc.

If someone will point me to where this code is I’ll play around with it and see what can be done.

FGasper avatar Jan 15 '18 23:01 FGasper

@FGasper sorry that I missed this. The search logic is in https://github.com/metacpan/metacpan-api/blob/master/lib/MetaCPAN/Model/Search.pm You'd need to get a development environment up and running to play with this properly. The instructions are at https://github.com/metacpan/metacpan-developer Please reach out if you run into any kinds of problems.

oalders avatar Apr 21 '18 16:04 oalders

If this to be implemented, please could we have an alternative search with the current functionality? i.e. one which only searches for what the user actually types into the search field.

openstrike avatar May 07 '20 09:05 openstrike