Skip to content

Instantly share code, notes, and snippets.

@sourcec0de
Created March 17, 2014 19:20
Show Gist options
  • Save sourcec0de/9606394 to your computer and use it in GitHub Desktop.
Save sourcec0de/9606394 to your computer and use it in GitHub Desktop.
Create new ElasticSearch index with multiple mappings
curl -XPUT http://localhost:9200/newindex2 -d '{
"settings":{
// settings, analyzers, etc
},
// multiple mappings
"mappings":{
"type1":{
"properties":{
}
},
"type2":{
"properties":{
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment