bower/registry — pull request #80 by patrickkettner (2014-07-26 09:29:57+00:00)
Title: add search-by-url

this implementation is pretty naïve. Since we can't really validate urls or names to search just one (since we fuzzy match), it just searches both fields and returns the results. Using UNION to join two seperate searches prevents ORDER BY from working properly, and UNION ALL would result in the possibility of a bunch of duplicates. As a result, neither name or url are weighted.