Elasticsearch is a platform for distributed, RESTful search and analysis. It can scale as needed, and you can get started using it right away
ElasticSearch is a Java application built for Java 7 or higher. Therefore, the first step in setting up ElasticSearch is to ensure that you have Java installed and the JAVA_HOME environment variable correctly configured.
Related Page: Define Elasticsearch Custom Analyzer With Example
To check that you have a compatible version of Java installed, open up a terminal window and type java-version. The output should look something like this:
Running java -version in a console where Java 8 is installed.$ java -version java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
Once you have made sure that you have Java 7 or higher installed and the Java executable in your path, ensure that you have the JAVA_HOME environment variable configured by typing echo $JAVA_HOME into your terminal. The output should look something like this.