Skip to content

Instantly share code, notes, and snippets.

@radu-gheorghe
Created February 8, 2013 07:07
Show Gist options
  • Save radu-gheorghe/4737210 to your computer and use it in GitHub Desktop.
Save radu-gheorghe/4737210 to your computer and use it in GitHub Desktop.
curl -XDELETE localhost:9200/test
curl -XPUT localhost:9200/test -d '{
"index.mapper.dynamic": false
}'
#{"ok":true,"acknowledged":true}
curl -XPUT localhost:9200/test/test/1 -d '{"foo":"bar"}'
#{"error":"TypeMissingException[[test] type[test] missing: trying to auto create mapping, but dynamic mapping is disabled]","status":404}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment