Skip to content

Instantly share code, notes, and snippets.

@betabug-sw
betabug-sw / gist:2776724
Created May 23, 2012 18:05
Elasticsearch 19.2+ gives 404 on '/_mapping' with an empty data storage
Up till version 19.1 of Elasticsearch, getting '/_mapping' on an
empty data storage (no indexes, no nothing, freshly installed)
would return {} and give a status of 200.
19.2+ correctly returns {}, but gives a status 404:
es/elasticsearch-0.19.4$ curl -v -XGET 'http://127.0.0.1:9200/_mapping'
* About to connect() to 127.0.0.1 port 9200 (#0)
* Trying 127.0.0.1...
* connected