update example
This commit is contained in:
parent
8da12f3492
commit
c4c498a3aa
13
README.md
13
README.md
@ -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
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user