diff --git a/README.md b/README.md index 359b6fd..556a5e3 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Support two kind analyzer: ## Test Analyzer -`GET /_analyze +`GET /_analyze` ```json { "analyzer" : "hanlp-index", @@ -171,4 +171,41 @@ POST /test/test/_search } ``` +Response is: +```json +{ + "took": 384, + "timed_out": false, + "_shards": { + "total": 5, + "successful": 5, + "skipped": 0, + "failed": 0 + }, + "hits": { + "total": 1, + "max_score": 0.2876821, + "hits": [ + { + "_index": "test", + "_type": "test", + "_id": "1", + "_score": 0.2876821, + "_source": { + "content": [ + "中华人民共和国", + "地大物博" + ] + }, + "highlight": { + "content": [ + "中华人民共和国" + ] + } + } + ] + } +} +``` +