How to install ElasticSearch in a Windows environment

What is ElasticSearch?

ElasticSearch is a Java-based service that will allow you to stock data and query that data. If you know about Solr, the tool is in the same spirit but with a different management model. If you don’t, you might know Lucene or Lucene.NET. ElasticSearch is a server implementation of Lucene. Among the great feature of ElasticSearch is how it reaches high availability through a proper node scaling. Mostly, you won’t have to do anything by default. Everything will work straight out of the box.

For the full list of feature, I will redirect you to their website.

System requirements

Latest Java version

Installing Java

First, we’ll get Java out of the way. If you don’t have java installed on your machine, go to and select the runtime “Java” and proceed with the installation.

Once this is done, you have to set your JAVA_HOME which for whatever reason is never set after installing a JRE. If you need help on how to set your environment variable for your Java JRE, Stackoverflow is filled with such answers.

To ensure that it works, open a command prompt and type “java” and press enter. It should display the help prompt for the Java command line utility.

That’s it. Now we are ready to install ElasticSearch.

Installing ElasticSearch

First, we’ll start by going to to download the latest release (0.90.8 as of this post). They release fairly often so you might want to keep yourself up to date regularly.

After downloading the ZIP file, you will see something like this:


Inside thebin folder, you will have a file called elasticsearch.bat. Double click and you are done.

A command line will be opened and your instance will be available.

What do we have now?

First, if you hit http://localhost:9200/ with a browser, you will see a health status of your ElasticSearch instance with the version number, the name and more.

If you want to see everything that compose your ElasticSearch cluster (a cluster is defined by default even for one node), you can hit this url: http://localhost:9200/_status?pretty=true

ElasticSearch exposes a REST API that will allow you to do most action that you need on your cluster. See the full documentation for more info. 

However, if you are from the .NET world like me, you’ll want some abstraction over that tool so that you don’t have to deal with everything at a granular level.


For .NET, I recommend NEST (documentation). It provide a great abstraction with .NET 4+ support for controlling an ElasticSearch cluster.

If you want to get down to the metal, I recommend the Sense Extension for Chrome. It comes with intelisense and will allow you to do most of your maintenance through it.


So I just wanted to get this out of the window. ElasticSearch is very easy to install and get started. I’m currently working on a curation tool that allows me to store lots of data from Twitter and other sources. This is what is bringing you the daily Community Updates. This tool is currently running on my station but is heavily using ElasticSearch to sort through the content at blazing speed.

Eventually, I want to get that code out in the open. However, I know that people will question on how to get ElasticSearch ready hence why I created that post.