What is Elasticsearch?

Elasticsearch is an open source tool with search engine compliant to restful webservice. Elasticsearch is built on Apache Lucene and released under Apache license.
It allows us to store, search, and analyze big volumes of data very quickly and in near real time. Developers generally use this tool in order to make their search faster as google and is also used for logging purpose.

Benefits Of Elasticsearch

  • Lots of search options
  • Speed.
  • Scalability
  • Query fine tuning
  • Distributed approach

Installation on Linux(ubuntu):

We will install or run elasticsearch through docker, if you have docker already installed on your system then its fine, and if you didn’t have docker installed on your system then install it with the below command:-

sudo apt-get install docker.io -y

To run elastic search with docker execute the command below:-

sudo docker run -it -p 9200:9200 -d docker.elastic.co/elasticsearch/elasticsearch:6.5.1

Installation on Linux
In the above docker command we are running elasticsearch as a docker container in a detached mode on port no. 9200

To check whether it is running or not, Execute the below command

curl http://localhost:9200

check weather

Subscribe Now