A Ruby library to integrate Google Custom Search Engine (CSE) into Rails applications. Lets you add Google-powered search to your site using your own custom search engine ID.
Tags: google-custom-search, custom-search-engine, site-search, google-api, rails, deprecated
Add this line to your Gemfile:
gem 'google_search_cse'Then run:
bundle install- Create a Custom Search Engine at programmablesearchengine.google.com
- Note your Search Engine ID (cx)
- Enable the Custom Search JSON API in Google Cloud Console and grab an API key
search = GoogleSearchCse.new
results = search.query("YOUR_API_KEY", "YOUR_CX_ID", "ruby on rails")Since this gem is deprecated, open issues are mostly focused on smoothing the migration
path (Algolia/Meilisearch/Typesense examples) rather than new features — see the
open issues list. Some are
tagged good first issue
if you'd like to help.