composer/packagist — pull request #261 by simensen (2012-12-12 20:43:24+00:00)
Title: Warn on similarly named packages

Performs a search on the package name. If search returns any results for the detected package name a warning is displayed reading:

> **Notice:** One or more similarly named packages have already been submitted to Packagist. If this is a fork read the notice above regarding VCS Repositories.
>
> Similarly named packages:
>
> * somevendor/somepackage

Up to 5 packages will be listed. If more, any packages after the 5th are rolled into one line stating, "And N more." So for example, if 13 packages are found, it will read, "And 8 more". The packages are clickable so that the user can have the opportunity to visit the already submitted packages.

refs #109

I'd say it closes it, but that is a more complicated solution (specific GitHub driver to detect **actual** forks) so we can close it if this does a solid enough job.

I'm new to Solr so I don't know if I did the query correctly. I only wanted to search based on name but what I'd really like to do is search based on just the latter part of the name but I don't think any of the indexes are currently setup for that.

For example, **someone/doctrine-bundle** should probably get a really high hit for **doctrine-bundle** and not so much worry about the **someone** part. As it is now, this will probably match quite often anytime someone submits anything with any of the big vendors in the name. But maybe that won't be a bad thing?