Searchkick

suggest change

If you want to setup quickly elasticsearch you can use the searchkick gem :

gem 'searchkick'

Add searchkick to models you want to search.

class Product < ActiveRecord::Basesearchkickend

Add data to the search index.

Product.reindex

And to query, use:

products = Product.search "apples"products.each do |product|puts product.nameend

Pretty quick, elasticsearch knowledge not required ;-)

More information here : https://github.com/ankane/searchkick

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Elasticsearch:
*Searchkick

Table Of Contents
42Elasticsearch
55CSV