Skip to content

Instantly share code, notes, and snippets.

View kevalbhatt's full-sized avatar
💭
I may be slow to respond.

Keval Bhatt kevalbhatt

💭
I may be slow to respond.
View GitHub Profile
@kevalbhatt
kevalbhatt / elasticsearch.md
Created December 12, 2015 14:34 — forked from nicolashery/elasticsearch.md
Elasticsearch: updating the mappings and settings of an existing index

Elasticsearch: updating the mappings and settings of an existing index

Note: This was written using elasticsearch 0.9.

Elasticsearch will automatically create an index (with basic settings and mappings) for you if you post a first document:

$ curl -X POST 'http://localhost:9200/thegame/weapons/1' -d \
'{
  "_id": 1,