Tutorial by Examples

The first thing you want to do for local development is install ElasticSearch in your machine and test it to see if it is running. It requires Java to be installed. The installation is pretty straightforward: Mac OS X: brew install elasticsearch Ubuntu: sudo apt-get install elasticsearch Then...
When you are getting started with ElasticSearch (ES) it might be good to have a graphical tool that helps you explore your data. A plugin called elasticsearch-head does just that. To install it, do the following: Find out in which folder ES is installed: ls -l $(which elasticsearch) cd into this...
ElasticSearch has a well-documented JSON API, but you'll probably want to use some libraries that handle that for you: Elasticsearch - the official low level wrapper for the HTTP API Elasticsearch-rails - the official high level Rails integration that helps you to connect your Rails models...
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::Base searchkick end Add data to the search index. Product.reindex And to query, use: products = Product.search &...

Page 1 of 1