Skip to content

Instantly share code, notes, and snippets.

@mkommar
Created March 18, 2014 17:10
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 mkommar/9624564 to your computer and use it in GitHub Desktop.
Save mkommar/9624564 to your computer and use it in GitHub Desktop.
curl -XPUT localhost:9200/mtest
curl -X POST localhost:9200/mtest/dynamics/_mapping -d '
{
"dynamic":{
"dynamic_templates":[
{
"template_1":{
"match":"*",
"mapping":{
"type":"multi_field",
"fields":{
"{name}":{
"type":"string",
"index":"analyzed"
},
"org":{
"type":"string",
"index":"not_analyzed"
}
}
}
}
}
],
"properties":{
"field1":{
"type":"string"
},
"field2":{
"type":"string"
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment