{"action":"created","comment":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/65840852","id":65840852,"diff_hunk":"@@ -1,44 +1,32 @@\n [[ngrams-compound-words]]\n-=== Ngrams for Compound Words\n+=== Ngrams 在复合词的应用\n \n-Finally, let's take a look at how n-grams can be used to search languages with\n-compound words. (((\"languages\", \"using many compound words, indexing of\")))(((\"n-grams\", \"using with compound words\")))(((\"partial matching\", \"using n-grams for compound words\")))(((\"German\", \"compound words in\"))) German is famous for combining several small words into one\n-massive compound word in order to capture precise or complex meanings. For\n-example:\n+最后，来看看 n-gram 是如何应用于搜索复合词的语言中的。(((\"languages\", \"using many compound words, indexing of\")))(((\"n-grams\", \"using with compound words\")))(((\"partial matching\", \"using n-grams for compound words\")))(((\"German\", \"compound words in\")))德语闻名于它可以将许多小词组合成一个庞大的复合词以表达它准确又复杂的意义。例如：\n \n _Aussprachewörterbuch_::\n-    Pronunciation dictionary\n+    发音字典（Pronunciation dictionary）\n \n _Militärgeschichte_::\n-    Military history\n+    战争史（Military history）\n \n _Weißkopfseeadler_::\n-    White-headed sea eagle, or bald eagle\n+    秃鹰（White-headed sea eagle, or bald eagle）\n \n _Weltgesundheitsorganisation_::\n-    World Health Organization\n+    世界卫生组织（World Health Organization）\n \n _Rindfleischetikettierungsüberwachungsaufgabenübertragungsgesetz_::\n-    The law concerning the delegation of duties for the supervision of cattle\n-    marking and the labeling of beef\n+    法案考虑代理监管牛和牛肉的标记的职责（The law concerning the delegation of duties for the supervision of cattle marking and the labeling of beef）\n \n-Somebody searching for ``Wörterbuch'' (dictionary) would probably expect to\n-see ``Aussprachewörtebuch'' in the results list. Similarly, a search for\n-``Adler'' (eagle) should include ``Weißkopfseeadler.''\n+有些人希望在搜索 “Wörterbuch”（字典）的时候，能在结果中看到 “Aussprachewörtebuch”（发音字典）。同样，搜索 “Adler”（鹰）的时候，能将 “Weißkopfseeadler”（秃鹰）包括在结果中。\n \n-One approach to indexing languages like this is to break compound words into\n-their constituent parts using the {ref}/analysis-compound-word-tokenfilter.html[compound word token filter].\n-However, the quality of the results depends on how good your compound-word\n-dictionary is.\n+处理这种语言的一种方式可以是将复合词拆分成各自部分，然后用","path":"130_Partial_Matching/40_Compound_words.asciidoc","position":41,"original_position":41,"commit_id":"6f280a5f9c6414bfcbb857a91bbd65760e665510","original_commit_id":"6f280a5f9c6414bfcbb857a91bbd65760e665510","user":{"login":"xuej","id":6321798,"avatar_url":"https://avatars.githubusercontent.com/u/6321798?v=3","gravatar_id":"","url":"https://api.github.com/users/xuej","html_url":"https://github.com/xuej","followers_url":"https://api.github.com/users/xuej/followers","following_url":"https://api.github.com/users/xuej/following{/other_user}","gists_url":"https://api.github.com/users/xuej/gists{/gist_id}","starred_url":"https://api.github.com/users/xuej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuej/subscriptions","organizations_url":"https://api.github.com/users/xuej/orgs","repos_url":"https://api.github.com/users/xuej/repos","events_url":"https://api.github.com/users/xuej/events{/privacy}","received_events_url":"https://api.github.com/users/xuej/received_events","type":"User","site_admin":false},"body":"“处理这种语言的一种方式可以是将复合词拆分成各自部分，然后用{ref}/analysis-compound-word-tokenfilter.html[组合词 token 过滤器（compound word token filter）]，“=>这块读起来感觉顺序有点问题，你看这样翻译可以吗”处理这种语言的一种方式可以是用{ref}/analysis-compound-word-tokenfilter.html[组合词 token 过滤器（compound word token filter）]将复合词拆分成各自部分“？","created_at":"2016-06-06T06:16:54Z","updated_at":"2016-06-06T06:16:54Z","html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/111#discussion_r65840852","pull_request_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/65840852"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/111#discussion_r65840852"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111"}}},"pull_request":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111","id":66811688,"html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/111","diff_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/111.diff","patch_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/111.patch","issue_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/111","number":111,"state":"open","locked":false,"title":"chapter16_part9: /130_Partial_Matching/40_Compound_words.asciidoc","user":{"login":"richardwei2008","id":1597335,"avatar_url":"https://avatars.githubusercontent.com/u/1597335?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwei2008","html_url":"https://github.com/richardwei2008","followers_url":"https://api.github.com/users/richardwei2008/followers","following_url":"https://api.github.com/users/richardwei2008/following{/other_user}","gists_url":"https://api.github.com/users/richardwei2008/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwei2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwei2008/subscriptions","organizations_url":"https://api.github.com/users/richardwei2008/orgs","repos_url":"https://api.github.com/users/richardwei2008/repos","events_url":"https://api.github.com/users/richardwei2008/events{/privacy}","received_events_url":"https://api.github.com/users/richardwei2008/received_events","type":"User","site_admin":false},"body":"初译","created_at":"2016-04-18T07:54:05Z","updated_at":"2016-06-06T06:16:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45f9019a2c8efa76ddc0146e65849964c3d2df01","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111/commits","review_comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111/comments","review_comment_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/111/comments","statuses_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/6f280a5f9c6414bfcbb857a91bbd65760e665510","head":{"label":"richardwei2008:p2_chapter16/40_Compound_words","ref":"p2_chapter16/40_Compound_words","sha":"6f280a5f9c6414bfcbb857a91bbd65760e665510","user":{"login":"richardwei2008","id":1597335,"avatar_url":"https://avatars.githubusercontent.com/u/1597335?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwei2008","html_url":"https://github.com/richardwei2008","followers_url":"https://api.github.com/users/richardwei2008/followers","following_url":"https://api.github.com/users/richardwei2008/following{/other_user}","gists_url":"https://api.github.com/users/richardwei2008/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwei2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwei2008/subscriptions","organizations_url":"https://api.github.com/users/richardwei2008/orgs","repos_url":"https://api.github.com/users/richardwei2008/repos","events_url":"https://api.github.com/users/richardwei2008/events{/privacy}","received_events_url":"https://api.github.com/users/richardwei2008/received_events","type":"User","site_admin":false},"repo":{"id":53457931,"name":"elasticsearch-definitive-guide","full_name":"richardwei2008/elasticsearch-definitive-guide","owner":{"login":"richardwei2008","id":1597335,"avatar_url":"https://avatars.githubusercontent.com/u/1597335?v=3","gravatar_id":"","url":"https://api.github.com/users/richardwei2008","html_url":"https://github.com/richardwei2008","followers_url":"https://api.github.com/users/richardwei2008/followers","following_url":"https://api.github.com/users/richardwei2008/following{/other_user}","gists_url":"https://api.github.com/users/richardwei2008/gists{/gist_id}","starred_url":"https://api.github.com/users/richardwei2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardwei2008/subscriptions","organizations_url":"https://api.github.com/users/richardwei2008/orgs","repos_url":"https://api.github.com/users/richardwei2008/repos","events_url":"https://api.github.com/users/richardwei2008/events{/privacy}","received_events_url":"https://api.github.com/users/richardwei2008/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/richardwei2008/elasticsearch-definitive-guide","description":"欢迎加群：109764489，贡献力量！","fork":true,"url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide","forks_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/forks","keys_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/teams","hooks_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/hooks","issue_events_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/issues/events{/number}","events_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/events","assignees_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/assignees{/user}","branches_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/branches{/branch}","tags_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/tags","blobs_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/languages","stargazers_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/stargazers","contributors_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/contributors","subscribers_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/subscribers","subscription_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/subscription","commits_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/contents/{+path}","compare_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/merges","archive_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/downloads","issues_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/issues{/number}","pulls_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/labels{/name}","releases_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/releases{/id}","deployments_url":"https://api.github.com/repos/richardwei2008/elasticsearch-definitive-guide/deployments","created_at":"2016-03-09T01:23:20Z","updated_at":"2016-03-09T01:23:21Z","pushed_at":"2016-05-20T06:14:37Z","git_url":"git://github.com/richardwei2008/elasticsearch-definitive-guide.git","ssh_url":"git@github.com:richardwei2008/elasticsearch-definitive-guide.git","clone_url":"https://github.com/richardwei2008/elasticsearch-definitive-guide.git","svn_url":"https://github.com/richardwei2008/elasticsearch-definitive-guide","homepage":"","size":7332,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elasticsearch-cn:cn","ref":"cn","sha":"7680b32a164c1d7495d5369188570755f72a5787","user":{"login":"elasticsearch-cn","id":2517572,"avatar_url":"https://avatars.githubusercontent.com/u/2517572?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsearch-cn","html_url":"https://github.com/elasticsearch-cn","followers_url":"https://api.github.com/users/elasticsearch-cn/followers","following_url":"https://api.github.com/users/elasticsearch-cn/following{/other_user}","gists_url":"https://api.github.com/users/elasticsearch-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsearch-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsearch-cn/subscriptions","organizations_url":"https://api.github.com/users/elasticsearch-cn/orgs","repos_url":"https://api.github.com/users/elasticsearch-cn/repos","events_url":"https://api.github.com/users/elasticsearch-cn/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsearch-cn/received_events","type":"Organization","site_admin":false},"repo":{"id":20916742,"name":"elasticsearch-definitive-guide","full_name":"elasticsearch-cn/elasticsearch-definitive-guide","owner":{"login":"elasticsearch-cn","id":2517572,"avatar_url":"https://avatars.githubusercontent.com/u/2517572?v=3","gravatar_id":"","url":"https://api.github.com/users/elasticsearch-cn","html_url":"https://github.com/elasticsearch-cn","followers_url":"https://api.github.com/users/elasticsearch-cn/followers","following_url":"https://api.github.com/users/elasticsearch-cn/following{/other_user}","gists_url":"https://api.github.com/users/elasticsearch-cn/gists{/gist_id}","starred_url":"https://api.github.com/users/elasticsearch-cn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elasticsearch-cn/subscriptions","organizations_url":"https://api.github.com/users/elasticsearch-cn/orgs","repos_url":"https://api.github.com/users/elasticsearch-cn/repos","events_url":"https://api.github.com/users/elasticsearch-cn/events{/privacy}","received_events_url":"https://api.github.com/users/elasticsearch-cn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide","description":"欢迎加群：109764489，贡献力量！","fork":true,"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide","forks_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/forks","keys_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/teams","hooks_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/hooks","issue_events_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/events{/number}","events_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/events","assignees_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/assignees{/user}","branches_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/branches{/branch}","tags_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/tags","blobs_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/languages","stargazers_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/stargazers","contributors_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/contributors","subscribers_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/subscribers","subscription_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/subscription","commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/contents/{+path}","compare_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/merges","archive_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/downloads","issues_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues{/number}","pulls_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/labels{/name}","releases_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/releases{/id}","deployments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/deployments","created_at":"2014-06-17T08:56:29Z","updated_at":"2016-05-27T09:11:00Z","pushed_at":"2016-06-02T13:21:45Z","git_url":"git://github.com/elasticsearch-cn/elasticsearch-definitive-guide.git","ssh_url":"git@github.com:elasticsearch-cn/elasticsearch-definitive-guide.git","clone_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide.git","svn_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide","homepage":"","size":8355,"stargazers_count":32,"watchers_count":32,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":46,"mirror_url":null,"open_issues_count":104,"forks":46,"open_issues":104,"watchers":32,"default_branch":"cn"}},"_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/111"},"issue":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/111"},"comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/111/comments"},"review_comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111/comments"},"review_comment":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/111/commits"},"statuses":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/6f280a5f9c6414bfcbb857a91bbd65760e665510"}}}}
{"actor":{"display_login":"xuej"}}