Tuesday 6 August 2013

ElasticSearch Installation

Installation Of Elastic Search
Elastic search is real time distributed search engine. Its very fabulous to use elastic search for projects instead of creating own search strategies
So here are the steps to install elastic search:
  • Download debian package of elastic search from official site.
  • Install JDk by - sudo apt-get install openjdk-6-jdk
  • Install elsatic search - sudo dpkg -i elasticsearch-0.90.2.deb (path of debian package of elasticsearch) 
How you can test whether elastic search is installed in your system. It is possible to test by putting this URL on browser http://localhost:9200/ , by default elastic search working on the port of 9200 and return following json on browser.

{
  • ok: true,
  • status: 200,
  • name: "Lodestone",
  • version: {
    • number: "0.90.2",
    • snapshot_build: false,
    • lucene_version: "4.3.1"
    },
  • tagline: "You Know, for Search"
}

Number of options are avail for elastic search. Run following command on terminal to see options.
a) anupam@anupampc:~$ sudo service elasticsearch help
Output 
 * Usage: /etc/init.d/elasticsearch {start|stop|restart|force-reload|status}


b) anupam@anupampc:~$ sudo service elasticsearch start
Output
* Starting ElasticSearch Server                                        [ OK ]

c) anupam@anupampc:~$ sudo service elasticsearch status
Output

* ElasticSearch Server is running with pid 4996
 

d) anupam@anupampc:~$ sudo service elasticsearch restart
Output

* Stopping ElasticSearch Server                                        [ OK ]

Plugin avail for using elastic search in chrome
SENSE plug-in avail for google chrome. Add sense to your favorite google chrome and ready to use elasticsearch. Once you have installed it you'll find Sense's icon in the upper right corner in Chrome. The first time you click it and run Sense a very simple sample request is prepared for you. It is possible to run queries directly on sense and see results. 

Sense Interface On Google Chrome


Sense provides a simple user interface specifically for using ElasticSearch's REST API. It also has a number of convenient features such as autocomplete for ElasticSearch's query syntax and copying and pasting requests in curl format, making it easy to run examples from the documentation.




0 comments:

Post a Comment