Skip to content

abhsss96/google_search_cse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google_search_cse

Gem Version Gem Downloads

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

Installation

Add this line to your Gemfile:

gem 'google_search_cse'

Then run:

bundle install

Setup

  1. Create a Custom Search Engine at programmablesearchengine.google.com
  2. Note your Search Engine ID (cx)
  3. Enable the Custom Search JSON API in Google Cloud Console and grab an API key

Usage

search = GoogleSearchCse.new
results = search.query("YOUR_API_KEY", "YOUR_CX_ID", "ruby on rails")

Links

Contributing

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.

About

A library to use Google Custom Search in Rails applications

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages