From bfcebccd0fdf99c8ebc230cfb433fecea8dd0478 Mon Sep 17 00:00:00 2001 From: medcl Date: Tue, 23 Aug 2016 00:33:52 +0800 Subject: [PATCH] update readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2e5c0ad..49a2177 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,7 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d' }, "properties": { "content": { - "type": "string", - "store": "no", - "term_vector": "with_positions_offsets", + "type": "text", "analyzer": "ik_max_word", "search_analyzer": "ik_max_word", "include_in_all": "true", @@ -110,7 +108,7 @@ curl -XPOST http://localhost:9200/index/fulltext/4 -d' ```bash curl -XPOST http://localhost:9200/index/fulltext/_search -d' { - "query" : { "term" : { "content" : "中国" }}, + "query" : { "match" : { "content" : "中国" }}, "highlight" : { "pre_tags" : ["", ""], "post_tags" : ["", ""], -- GitLab