update readme
This commit is contained in:
parent
82c6369501
commit
bfcebccd0f
@ -66,9 +66,7 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
|
|||||||
},
|
},
|
||||||
"properties": {
|
"properties": {
|
||||||
"content": {
|
"content": {
|
||||||
"type": "string",
|
"type": "text",
|
||||||
"store": "no",
|
|
||||||
"term_vector": "with_positions_offsets",
|
|
||||||
"analyzer": "ik_max_word",
|
"analyzer": "ik_max_word",
|
||||||
"search_analyzer": "ik_max_word",
|
"search_analyzer": "ik_max_word",
|
||||||
"include_in_all": "true",
|
"include_in_all": "true",
|
||||||
@ -110,7 +108,7 @@ curl -XPOST http://localhost:9200/index/fulltext/4 -d'
|
|||||||
```bash
|
```bash
|
||||||
curl -XPOST http://localhost:9200/index/fulltext/_search -d'
|
curl -XPOST http://localhost:9200/index/fulltext/_search -d'
|
||||||
{
|
{
|
||||||
"query" : { "term" : { "content" : "中国" }},
|
"query" : { "match" : { "content" : "中国" }},
|
||||||
"highlight" : {
|
"highlight" : {
|
||||||
"pre_tags" : ["<tag1>", "<tag2>"],
|
"pre_tags" : ["<tag1>", "<tag2>"],
|
||||||
"post_tags" : ["</tag1>", "</tag2>"],
|
"post_tags" : ["</tag1>", "</tag2>"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user