Searchbox-Tire

Searchbox-Tire is Ruby client for searchbox based on https://github.com/karmi/tire/ which is a Ruby client for ElasticSearch.

Installation

Install gem via ruby gems

$ gem install searchbox-tire

or you can use bundler

gem 'searchbox-tire'

Generate config file

$ rails generate searchbox

This will generate file named searchbox.yml under config folder looks like this.

# Configuration file for searchbox.io
development:
  account_name: dev_account
  api_key: dev_key

test:
  account_name: test_account
  api_key: test_key

production:
  account_name: <%= ENV['SEARCHBOX_ACCOUNT_NAME'] %>
  api_key: <%= ENV['SEARCHBOX_API_KEY'] %>

Enter your account name and api key which can be generated from http://searchbox.io/.

Usage

Tire project documentation details can be found at http://karmi.github.com/tire/