Improve cookbook search ranking

Only use trigram search for cookbook names add tie breaker when ranks
are the same rank primarily by :trigram giving greater precedence to
cookbook names. Also fixes a broken search spec that wasn't testing the
correct thing.