Skip to content

Instantly share code, notes, and snippets.

@jfiedler
Created March 9, 2011 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfiedler/861923 to your computer and use it in GitHub Desktop.
Save jfiedler/861923 to your computer and use it in GitHub Desktop.
Curl based recreation of a strange Elastic Search warning when putting a perfectly valid mapping
$ curl -XPUT 'http://localhost:9200/twitter/'
$ curl -XPUT 'http://localhost:9200/twitter/tweet/_mapping' -d '
{
"tweet" : {
"dynamic_templates" : [ {
"template1" : {
"match" : "*",
"match_mapping_type" : "string",
"mapping" : {
"type" : "string",
"index" : "not_analyzed"
}
}
} ]
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment