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 ```bash
curl -XPOST http://localhost:9200/index/fulltext/_mapping -d' 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": { "properties": {
"content": { "content": {
"type": "text", "type": "text",
"analyzer": "ik_max_word", "analyzer": "ik_max_word",
"search_analyzer": "ik_max_word", "search_analyzer": "ik_max_word"
"include_in_all": "true",
"boost": 8
} }
} }
}
}' }'
``` ```