Refactor cookbook search to use sunspot

Replace cookbook postgres based search solr based search.