update example

This commit is contained in:
medcl 2017-08-03 17:10:30 +08:00
parent 8da12f3492
commit c4c498a3aa

View File

@ -56,23 +56,14 @@ curl -XPUT http://localhost:9200/index
```bash
curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
{
"fulltext": {
"_all": {
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word",
"term_vector": "no",
"store": "false"
},
"properties": {
"content": {
"type": "text",
"analyzer": "ik_max_word",
"search_analyzer": "ik_max_word",
"include_in_all": "true",
"boost": 8
"search_analyzer": "ik_max_word"
}
}
}
}'
```