Skip to content

Instantly share code, notes, and snippets.

@marklin-latte
Last active August 29, 2015 14:09
Show Gist options
  • Save marklin-latte/021e324e25cbc15cbc0c to your computer and use it in GitHub Desktop.
Save marklin-latte/021e324e25cbc15cbc0c to your computer and use it in GitHub Desktop.
ElasticSearch-Update Index analysis
Step1.
Uri:POST
http://localhost:9200/test/_close
==========================================================================================================================================
Step2.
Uri:PUT
http://localhost:9200/test/_settings
Json
{
"analysis" : {
"analyzer":{
"content":{
"type":"SmartChinese"
}
}
}
}
==========================================================================================================================================
Step3.
Uri:POST
http://localhost:9200/test/_open
==========================================================================================================================================
Result:
{
"test": {
"settings": {
"index": {
"number_of_shards": "5",
"analysis": {
"analyzer": {
"content": {
"type": "SmartChinese"
}
}
},
"uuid": "O5ZmYnlDTpmMXXxXahnr_g",
"version": {
"created": "1030499"
},
"number_of_replicas": "1"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment