Using Spatial Data In Elasticsearch

Requirements

To work through the exercises you'll need to install virtualbox and vagrant.

We also recommend using the Sense extension for Chrome which provides a JSON aware interface to Elasticsearch.

Interactions with the Elasticsearch API are illustrated using cURL

Grab the repo

$ git clone https://github.com/geoplex/elasticsearch-spatial

Python

A python loader is provided in the repository which helps load shapefiles into Elasticsearch. To use this you'll need python installed.

We recommend using virtualenv, a tool which provides isolated environments of python. By using virtualenv you can install python packages without affecting packages installed by other python applications.

You can install virtualenv using pip (Pip is a tool for easily installing and managing python packages)

Note: If you are an osx user, installing python via brew will include pip.

$ pip install virtualenv