Skip to content

Commit bfcebcc

Browse files
committed
update readme
1 parent 82c6369 commit bfcebcc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
6666
},
6767
"properties": {
6868
"content": {
69-
"type": "string",
70-
"store": "no",
71-
"term_vector": "with_positions_offsets",
69+
"type": "text",
7270
"analyzer": "ik_max_word",
7371
"search_analyzer": "ik_max_word",
7472
"include_in_all": "true",
@@ -110,7 +108,7 @@ curl -XPOST http://localhost:9200/index/fulltext/4 -d'
110108
```bash
111109
curl -XPOST http://localhost:9200/index/fulltext/_search -d'
112110
{
113-
"query" : { "term" : { "content" : "中国" }},
111+
"query" : { "match" : { "content" : "中国" }},
114112
"highlight" : {
115113
"pre_tags" : ["<tag1>", "<tag2>"],
116114
"post_tags" : ["</tag1>", "</tag2>"],

0 commit comments

Comments
 (0)