Made to simplify the usage of Algolia’s API within the Ruby on Rails Framework
Compatible with ActiveRecord, Mongoid, Sequel
Built to manage all search, indexing, events, and Recommend functionality
100% open source
Comes with a WebMock sample configuration to mock Algolia’s API
Background retry strategy to ensure uptime
Seamless batching via iterators to optimize number of network calls
Zero downtime reindexing feature
Ruby API Client, Autocomplete, InstantSearch
INSTALL
gem install algoliasearch-rails
INDEX
class Contact < ActiveRecord::Base
include AlgoliaSearch
algoliasearch do
attributes :first_name, :last_name, :email
attribute :company do
{ name: company_name, website: company_website }
end
end
end
Contact.reindex!
SEARCH
Contact.algolia_search("jon doe")