Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
boliza committed Jan 11, 2018
1 parent d9ccf22 commit 0e3c5d9
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Support two kind analyzer:

## Test Analyzer

`GET /_analyze
`GET /_analyze`
```json
{
"analyzer" : "hanlp-index",
Expand Down Expand Up @@ -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": [
"中华<tag1>人民</tag1>共和国"
]
}
}
]
}
}
```


0 comments on commit 0e3c5d9

Please sign in to comment.