Created
March 17, 2014 19:20
-
-
Save sourcec0de/9606394 to your computer and use it in GitHub Desktop.
Create new ElasticSearch index with multiple mappings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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