Skip to content

Commit

Permalink
correct the sample url
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Min committed Feb 26, 2016
1 parent e48dc9e commit 2fb267d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions 052_Mapping_Analysis/45_Mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,11 @@ PUT /gb/_mapping/tweet
你可以通过名字使用`analyze` API测试字符串字段的映射。对比这两个请求的输出:

```javascript
GET /gb/_analyze?field=tweet
Black-cats <1>
GET /gb/_analyze?field=tweet&text=Black-cats <1>

GET /gb/_analyze?field=tag
Black-cats <1>
GET /gb/_analyze?field=tag&text=Black-cats <2>
```
`<1>` 我们想要分析的文本被放在请求体中。
`<1>` `<2>` 我们想要分析的文本被放在请求体中。
`tweet`字段产生两个词,`"black"``"cat"`,`tag`字段产生单独的一个词`"Black-cats"`。换言之,我们的映射工作正常。

0 comments on commit 2fb267d

Please sign in to comment.