diff --git a/README.textile b/README.textile index 406bb78..35f438a 100644 --- a/README.textile +++ b/README.textile @@ -32,6 +32,7 @@ Analysis Configuration (elasticsearch.yml) -------------
+ { "index" : { "analysis" : { @@ -43,6 +44,7 @@ Analysis Configuration (elasticsearch.yml) } } } +Mapping Configuration @@ -50,12 +52,17 @@ Mapping Configuration Here is a quick example: 1.create a index +
+ curl -XPUT http://localhost:9200/index +2.create a mapping +
+ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d' { "fulltext": { @@ -81,7 +88,9 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'3.indexing some docs +
+ curl -XPOST http://localhost:9200/index/fulltext/1 -d' {content:"美国留给伊拉克的是个烂摊子吗"} ' @@ -100,7 +109,9 @@ curl -XPOST http://localhost:9200/index/fulltext/4 -d'4.query with highlighting +
+ curl -XPOST http://localhost:9200/index/fulltext/_search -d' { "query" : { "term" : { "content" : "中国" }},