metacpan-web
metacpan-web copied to clipboard
Main search should smart-match English customs when searching POD.
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 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.
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.