Get started

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")

Enable anyone to build great Search & Discovery