We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82c6369 commit bfcebccCopy full SHA for bfcebcc
README.md
@@ -66,9 +66,7 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
66
},
67
"properties": {
68
"content": {
69
- "type": "string",
70
- "store": "no",
71
- "term_vector": "with_positions_offsets",
+ "type": "text",
72
"analyzer": "ik_max_word",
73
"search_analyzer": "ik_max_word",
74
"include_in_all": "true",
@@ -110,7 +108,7 @@ curl -XPOST http://localhost:9200/index/fulltext/4 -d'
110
108
```bash
111
109
curl -XPOST http://localhost:9200/index/fulltext/_search -d'
112
{
113
- "query" : { "term" : { "content" : "中国" }},
+ "query" : { "match" : { "content" : "中国" }},
114
"highlight" : {
115
"pre_tags" : ["<tag1>", "<tag2>"],
116
"post_tags" : ["</tag1>", "</tag2>"],
0 commit comments