| Start |
|---|
| Searchkick If you want to setup quickly elasticsearch you can use the searchkick gem : Add searchkick to models you want to search. Add data to the search index. And to query, use: Pretty quick, elasticsearch knowledge not required ???? More information here : https://github.com/ankane/searchkick (opens new window) |
| Installation and testing 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:
Then start it:
For testing it, the easiest way is with
Example response: |
| Setting up tools for development 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
If everything worked as expected you should be seeing a nice GUI where you can explore your data. |
| Introduction ElasticSearch has a well-documented JSON API, but you'll probably want to use some libraries that handle that for you: Let's use the first option for testing the connection:
Then fire up the ruby terminal and try it out: |
Read Article
https://develop.horje.com/learn/1434/reference