Searchkick

suggest change

If you want to set up Elasticsearch quickly, you can use the searchkick gem:

gem "searchkick"

Add searchkick to models you want to search.

class Product < ActiveRecord::Base
  searchkick
end

Add data to the search index.

Product.reindex

And to query, use:

products = Product.search("apples")
products.each do |product|
  puts product.name
end

Pretty quick; Elasticsearch knowledge is 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:



Table Of Contents