elasticsearch-by-example

Getting Started

What things you need to install the software and how to install them:

Setting up a local Elasticsearch instance:

docker-compose up

Installing Elasticsearch Head

elasticsearch-head is a web front end for browsing and interacting with an Elastic Search cluster. You can find more info : elasticsearch-head chrome extension

Loading Data

Running the following script in your terminal will populate your local elasticsearch with real event data from the events.json seed file.

./scripts/load.sh

Connect to you’re local elasticsearch via HEAD, and confirm data is present by first connecting to ‘’ and then running the following request under the Any Request tab:

Running your first query

{
   "query":{
      "match_all":{

      }
   }
}

If you can successfully view data via the Elasticsearch head client, you are now ready to progress onto creating an index.

Previous: Overview

Next: Indexing