Elasticsearch Index Templates

Version

  • elasticsearch 1.7 - 2.1

Requirements

  • analysis-kuromoji
  • analysis-icu

How to use

Setup on Local Machine.

# 1. Clone this repository
git clone https://github.com/KunihikoKido/elasticsearch-index-templates.git

# 2. Create and activate a virtualenv for python
cd elasticsearch-index-templates
virtualenv env
source env/bin/activate

# 3. Install python modules.
pip install -r requirements.txt

Deploy Index Templates

default: localhost:9200

# Deploy to localhost:9200
fab deploy

Example deploy to other host

# Deploy to example.org:9200
fab deploy:example.org:9200

Delete Index Templates

default: localhost:9200

# Delete from localhost:9200
fab delete

Example delete from other host

# Delete from example.org:9200
fab delete:example.org:9200