Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gavinHuang/5829246 to your computer and use it in GitHub Desktop.
Save gavinHuang/5829246 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