{"action":"created","comment":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/90759880","pull_request_review_id":11279410,"id":90759880,"diff_hunk":"@@ -30,32 +28,16 @@ GET /_search\n   }\n }\n ------------------------------\n-<1> The `title` query clause is twice as important as the `content` query\n-    clause, because it has been boosted by a factor of `2`.\n-<2> A query clause without a `boost` value has a neutral boost of `1`.\n+<1> `title` 查询语句的重要性是 `content` 查询的 2 倍，因为它的权重提升值为 `2` 。\n+<2> 没有设置 `boost` 的查询语句的值为 `1` 。\n \n-_Query-time boosting_ is the main tool that you can use to tune relevance. Any\n-type of query accepts a `boost` parameter.(((\"boost parameter\", \"setting value\")))  Setting a `boost` of `2` doesn't\n-simply double the final `_score`; the actual boost value that is applied\n-goes through normalization and some internal optimization.  However, it does\n-imply that a clause with a boost of `2` is twice as important as a clause with\n-a boost of `1`.\n+_查询时的权重提升_ 是可以用来影响相关度的主要工具，任意类型的查询都能接受 `boost` 参数。(((\"boost parameter\", \"setting value\")))将 `boost` 设置为 `2` ，并不代表最终的评分 `_score` 是原值的两倍；实际的权重值会经过归一化和一些其他内部优化过程。尽管如此，它确实想要表明一个提升值为 `2` 的句子的重要性是提升值为 `1` 语句的两倍。\n \n-Practically, there is no simple formula for deciding on the ``correct'' boost\n-value for a particular query clause.  It's a matter of try-it-and-see.\n-Remember that `boost` is just one of the factors involved in the relevance\n-score; it has to compete with the other factors.  For instance, in the preceding\n-example, the `title` field will probably already have a ``natural'' boost over\n-the `content` field thanks (((\"field-length norm\")))to the <<field-norm,field-length norm>> (titles\n-are usually shorter than the related content), so don't blindly boost fields\n-just because you think they should be boosted.  Apply a boost and check the\n-results. Change the boost and check again.\n+在实际应用中，无法通过简单的公式得出某个特定查询语句的 “正确” 权重提升值，只能通过不断尝试获得。需要记住的是 `boost` 只是影响相关度评分的其中一个因子；它还与其他因子相互竞争。在前例中， `title` 字段相对 `content` 字段可能已经有一个隐含的权重提升值，这因为在 <<field-norm,字段长度归一值>> 中，(((\"field-length norm\")))标题往往比相关内容要短，所以不要想当然的去盲目提升一些字段的权重。选择权重，检查结果，如此反复。","path":"170_Relevance/20_Query_time_boosting.asciidoc","position":39,"original_position":39,"commit_id":"99bdb5b31445b6e206a96401a1afff3a77787b30","original_commit_id":"99bdb5b31445b6e206a96401a1afff3a77787b30","user":{"login":"tangmisi","id":19425897,"avatar_url":"https://avatars.githubusercontent.com/u/19425897?v=3","gravatar_id":"","url":"https://api.github.com/users/tangmisi","html_url":"https://github.com/tangmisi","followers_url":"https://api.github.com/users/tangmisi/followers","following_url":"https://api.github.com/users/tangmisi/following{/other_user}","gists_url":"https://api.github.com/users/tangmisi/gists{/gist_id}","starred_url":"https://api.github.com/users/tangmisi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangmisi/subscriptions","organizations_url":"https://api.github.com/users/tangmisi/orgs","repos_url":"https://api.github.com/users/tangmisi/repos","events_url":"https://api.github.com/users/tangmisi/events{/privacy}","received_events_url":"https://api.github.com/users/tangmisi/received_events","type":"User","site_admin":false},"body":"隐含的权重提升值--》 ``隐含的'' 权重提升值","created_at":"2016-12-03T16:04:08Z","updated_at":"2016-12-03T16:04:08Z","html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/115#discussion_r90759880","pull_request_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/90759880"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/115#discussion_r90759880"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115"}}},"pull_request":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115","id":66984017,"html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/115","diff_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/115.diff","patch_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/115.patch","issue_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/115","number":115,"state":"open","locked":false,"title":"chapter17_part4: /170_Relevance/20_Query_time_boosting.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":"初译\n","created_at":"2016-04-19T09:10:41Z","updated_at":"2016-12-03T16:04:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18bb215e1fb0346e322bad94624540175ddda59b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115/commits","review_comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115/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/115/comments","statuses_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/99bdb5b31445b6e206a96401a1afff3a77787b30","head":{"label":"richardwei2008:p2_chapter17/20_Query_time_boosting","ref":"p2_chapter17/20_Query_time_boosting","sha":"99bdb5b31445b6e206a96401a1afff3a77787b30","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-12-02T03:29:03Z","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":7958,"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":1,"forks":0,"open_issues":1,"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":"欢迎加QQ群：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-12-02T02:17:18Z","pushed_at":"2016-12-03T15:39:27Z","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":9996,"stargazers_count":88,"watchers_count":88,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"open_issues_count":107,"forks":92,"open_issues":107,"watchers":88,"default_branch":"cn"}},"_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/115"},"issue":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/115"},"comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/115/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/115/commits"},"statuses":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/99bdb5b31445b6e206a96401a1afff3a77787b30"}}}}
{"actor":{"display_login":"tangmisi"}}