Last active
August 29, 2015 14:09
-
-
Save marklin-latte/021e324e25cbc15cbc0c to your computer and use it in GitHub Desktop.
ElasticSearch-Update Index analysis
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
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