{"action":"created","comment":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/84423035","pull_request_review_id":5202745,"id":84423035,"diff_hunk":"@@ -1,41 +1,32 @@\n [[full-body-search]]\n-== Full-Body Search\n+== 请求体查询（Full-Body Search）\n \n-Search _lite_&#x2014;a <<search-lite,query-string search>>&#x2014;is useful for ad\n-hoc queries from the command line. (((\"searching\", \"request body search\", id=\"ix_reqbodysearch\")))To harness the full power of search,\n-however, you should use the _request body_ `search` API,(((\"request body search\"))) so called because\n-most parameters are passed in the HTTP request body instead of in the query\n-string.\n+_简易_  查询 &#x2014;<<search-lite,query-string search>>&#x2014; 对于在命令行进行 ad-hoc 查询是非常有用的。(((\"searching\", \"request body search\", id=\"ix_reqbodysearch\")))然而，为了充分利用查询的强大功能，你应该使用 _请求体查询_ `search` API， 之所以称之为请求体查询，(((\"request body search\"))) 因为大部分参数是通过 Http 请求体而非查询字符串来传递的。\n \n-Request body search--henceforth known as _search_&#x2014;not only handles\n-the query itself, but also allows you to return highlighted snippets from your\n-results, aggregate analytics across all results or subsets of results, and\n-return _did-you-mean_ suggestions, which will help guide your users to the\n-best results quickly.\n+请求体查询 &#x2014;下文简称 _查询_&#x2014;不仅可以处理自身的查询请求，还允许你对结果进行片段强调（标红）、对所有或部分结果进行聚合分析，同时还可以给出 _你是不是想找_ 的建议，这些建议可以引导使用者快速找到他想要的结果。\n \n-=== Empty Search\n+[[empty-search]]\n+=== 空查询（Empty search）\n \n-Let's start with the simplest form of (((\"request body search\", \"empty search\")))(((\"empty search\")))the `search` API, the empty search,\n-which returns all documents in all indices:\n+让我们以(((\"request body search\", \"empty search\")))(((\"empty search\")))最简单的 `search` API 的形式开启我们的旅程， 空查询（empty search）将返回所有索引库（indices)中的所有文档：\n \n [source,js]\n --------------------------------------------------\n GET /_search\n {} <1>\n --------------------------------------------------\n // SENSE: 054_Query_DSL/60_Empty_query.json\n-<1> This is an empty request body.\n+<1> 这是一个空的请求体。\n \n-Just as with a query-string search, you can search on one, many, or `_all`\n-indices, and one, many, or all types:\n+只用一个查询字符串，你就可以在一个、多个或者 `_all` 索引库（indices） 和一个、多个或者所有types中查询：","path":"054_Query_DSL/55_Request_body_search.asciidoc","position":38,"original_position":38,"commit_id":"dfe55398cb453d3c3750235804b0571233b6ee59","original_commit_id":"dfe55398cb453d3c3750235804b0571233b6ee59","user":{"login":"medcl","id":64487,"avatar_url":"https://avatars.githubusercontent.com/u/64487?v=3","gravatar_id":"","url":"https://api.github.com/users/medcl","html_url":"https://github.com/medcl","followers_url":"https://api.github.com/users/medcl/followers","following_url":"https://api.github.com/users/medcl/following{/other_user}","gists_url":"https://api.github.com/users/medcl/gists{/gist_id}","starred_url":"https://api.github.com/users/medcl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/medcl/subscriptions","organizations_url":"https://api.github.com/users/medcl/orgs","repos_url":"https://api.github.com/users/medcl/repos","events_url":"https://api.github.com/users/medcl/events{/privacy}","received_events_url":"https://api.github.com/users/medcl/received_events","type":"User","site_admin":false},"body":"”在一个、多个 中间的“ 中间的 “、” 是多余的","created_at":"2016-10-21T06:05:12Z","updated_at":"2016-10-21T06:05:12Z","html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/306#discussion_r84423035","pull_request_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306","_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/comments/84423035"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/306#discussion_r84423035"},"pull_request":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306","id":86192168,"html_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/306","diff_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/306.diff","patch_url":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/306.patch","issue_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/306","number":306,"state":"open","locked":false,"title":"chapter7_part1:/054_Query_DSL/55_Request_body_search.asciidoc","user":{"login":"leo650","id":5074423,"avatar_url":"https://avatars.githubusercontent.com/u/5074423?v=3","gravatar_id":"","url":"https://api.github.com/users/leo650","html_url":"https://github.com/leo650","followers_url":"https://api.github.com/users/leo650/followers","following_url":"https://api.github.com/users/leo650/following{/other_user}","gists_url":"https://api.github.com/users/leo650/gists{/gist_id}","starred_url":"https://api.github.com/users/leo650/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo650/subscriptions","organizations_url":"https://api.github.com/users/leo650/orgs","repos_url":"https://api.github.com/users/leo650/repos","events_url":"https://api.github.com/users/leo650/events{/privacy}","received_events_url":"https://api.github.com/users/leo650/received_events","type":"User","site_admin":false},"body":"将之前的close，提交新的pr","created_at":"2016-09-21T15:59:55Z","updated_at":"2016-10-21T06:05:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8dfb0379d9f53a92d87cb501114e4f401a0f1f3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306/commits","review_comments_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306/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/306/comments","statuses_url":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/dfe55398cb453d3c3750235804b0571233b6ee59","head":{"label":"leo650:chapter/chapter7_part1","ref":"chapter/chapter7_part1","sha":"dfe55398cb453d3c3750235804b0571233b6ee59","user":{"login":"leo650","id":5074423,"avatar_url":"https://avatars.githubusercontent.com/u/5074423?v=3","gravatar_id":"","url":"https://api.github.com/users/leo650","html_url":"https://github.com/leo650","followers_url":"https://api.github.com/users/leo650/followers","following_url":"https://api.github.com/users/leo650/following{/other_user}","gists_url":"https://api.github.com/users/leo650/gists{/gist_id}","starred_url":"https://api.github.com/users/leo650/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo650/subscriptions","organizations_url":"https://api.github.com/users/leo650/orgs","repos_url":"https://api.github.com/users/leo650/repos","events_url":"https://api.github.com/users/leo650/events{/privacy}","received_events_url":"https://api.github.com/users/leo650/received_events","type":"User","site_admin":false},"repo":{"id":64539000,"name":"elasticsearch-definitive-guide","full_name":"leo650/elasticsearch-definitive-guide","owner":{"login":"leo650","id":5074423,"avatar_url":"https://avatars.githubusercontent.com/u/5074423?v=3","gravatar_id":"","url":"https://api.github.com/users/leo650","html_url":"https://github.com/leo650","followers_url":"https://api.github.com/users/leo650/followers","following_url":"https://api.github.com/users/leo650/following{/other_user}","gists_url":"https://api.github.com/users/leo650/gists{/gist_id}","starred_url":"https://api.github.com/users/leo650/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leo650/subscriptions","organizations_url":"https://api.github.com/users/leo650/orgs","repos_url":"https://api.github.com/users/leo650/repos","events_url":"https://api.github.com/users/leo650/events{/privacy}","received_events_url":"https://api.github.com/users/leo650/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leo650/elasticsearch-definitive-guide","description":"欢迎加QQ群：109764489，贡献力量！","fork":true,"url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide","forks_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/forks","keys_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/teams","hooks_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/hooks","issue_events_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/issues/events{/number}","events_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/events","assignees_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/assignees{/user}","branches_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/branches{/branch}","tags_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/tags","blobs_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/languages","stargazers_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/stargazers","contributors_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/contributors","subscribers_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/subscribers","subscription_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/subscription","commits_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/contents/{+path}","compare_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/merges","archive_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/downloads","issues_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/issues{/number}","pulls_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/labels{/name}","releases_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/releases{/id}","deployments_url":"https://api.github.com/repos/leo650/elasticsearch-definitive-guide/deployments","created_at":"2016-07-30T10:31:22Z","updated_at":"2016-07-30T10:31:24Z","pushed_at":"2016-10-12T15:23:48Z","git_url":"git://github.com/leo650/elasticsearch-definitive-guide.git","ssh_url":"git@github.com:leo650/elasticsearch-definitive-guide.git","clone_url":"https://github.com/leo650/elasticsearch-definitive-guide.git","svn_url":"https://github.com/leo650/elasticsearch-definitive-guide","homepage":"","size":8133,"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":"cn"}},"base":{"label":"elasticsearch-cn:cn","ref":"cn","sha":"2fa89454e0c7b7b337ad02f0c4968ee2c27a73d8","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-10-18T06:36:54Z","pushed_at":"2016-10-21T03:10:09Z","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":9252,"stargazers_count":81,"watchers_count":81,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":82,"mirror_url":null,"open_issues_count":245,"forks":82,"open_issues":245,"watchers":81,"default_branch":"cn"}},"_links":{"self":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306"},"html":{"href":"https://github.com/elasticsearch-cn/elasticsearch-definitive-guide/pull/306"},"issue":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/306"},"comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/pulls/306/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/306/commits"},"statuses":{"href":"https://api.github.com/repos/elasticsearch-cn/elasticsearch-definitive-guide/statuses/dfe55398cb453d3c3750235804b0571233b6ee59"}}}}
{"actor":{"display_login":"medcl"}}