diff --git a/README.textile b/README.textile index bc530c1014514e2d8668bfbb79b2d7fd7db78f65..14163cb6f9043a9a2ed040161f7538c73e07c612 100644 --- a/README.textile +++ b/README.textile @@ -4,15 +4,15 @@ IK Analysis for ElasticSearch The IK Analysis plugin integrates Lucene IK analyzer into elasticsearch, support customized dictionary. - -------------------------------------------------- - | IK Analysis Plugin | ElasticSearch | - -------------------------------------------------- - | master | 0.19.4 -> master | - -------------------------------------------------- - | 1.1.0 | 0.19.4 -> master | - -------------------------------------------------- - | 1.0.0 | 0.16.2 -> 0.19.0 | - -------------------------------------------------- +-------------------------------------------------- +| IK Analysis Plugin | ElasticSearch | +-------------------------------------------------- +| master | 0.19.4 -> master | +-------------------------------------------------- +| 1.1.0 | 0.19.4 -> master | +-------------------------------------------------- +| 1.0.0 | 0.16.2 -> 0.19.0 | +-------------------------------------------------- Install @@ -85,7 +85,7 @@ curl -XPUT http://localhost:9200/index 2.create a mapping -```bash +
 
 curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
 {
@@ -108,13 +108,12 @@ curl -XPOST http://localhost:9200/index/fulltext/_mapping -d'
             }
         }
     }
-}
-'
-```
+}'
+
3.indexing some docs -```bash +
 
 curl -XPOST http://localhost:9200/index/fulltext/1 -d'
 {content:"美国留给伊拉克的是个烂摊子吗"}
@@ -131,12 +130,11 @@ curl -XPOST http://localhost:9200/index/fulltext/3 -d'
 curl -XPOST http://localhost:9200/index/fulltext/4 -d'
 {content:"中国驻洛杉矶领事馆遭亚裔男子枪击 嫌犯已自首"}
 '
-
-```
+
4.query with highlighting -```bash +
 
 curl -XPOST http://localhost:9200/index/fulltext/_search  -d'
 {
@@ -150,11 +148,11 @@ curl -XPOST http://localhost:9200/index/fulltext/_search  -d'
     }
 }
 '
-```
+
here is the query result -```bash +
 
 {
     "took": 14,
@@ -200,7 +198,7 @@ here is the query result
     }
 }
 
-```
+
have fun. \ No newline at end of file