-
Notifications
You must be signed in to change notification settings - Fork 7
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
Wrong Book for Module Name #12
Comments
The problem occurs because autocomplete from metacpan-api is used to match user-input. Autocomplete has strange behavior here:
Both, Tie::Log4perl and Log::Log4perl have the same score which is 1.169038. This looks like a bug to me... |
I opened an issue here: metacpan/metacpan-api#203 No idea if this is going to be fixed soon... or at all. |
Similarly a request for "Moo" returns the docs for "ppt". I added a comment at metacpan/metacpan-api#203 describing this somewhat different example (i.e. in this case the lookup terms are entirely unrelated and there is some confusion about the "documentation" field shown for ppt at http://api.metacpan.org//v0/search/autocomplete?&q=Moo) Question: [Edit] |
It's quite some pain to work with CPAN, because everything can happen there :-) As a first step I'll try to replace the autocomplete at serverside. It looked handy as I implemented it, but now it's the cause of a lot of errors. If anybody can help: I need a function (maybe from MetaCPAN::API) which allows me to check if a given module-name is valid... meaning will return a result. |
For stuff like the perl_mlb issue (#14) we should maintain a "blacklist". Part of the solution could be to grab two items in the resultlist and when a distribution is in that resultlist matches the search term exactly, we should provide the distribution documentation. Can we start a FAQ in the wiki please? In that FAQ we can document such problems. |
The issue with the wrong matching can be solved by using requests like
for modules and
for releases. By putting this into an eval{} we should be able to tell if the request will be a valid one... I'll implement that in the next few weeks or days. |
closed in commit fc65f5b |
If I enter
and press EPUB, I get
The text was updated successfully, but these errors were encountered: