{"action":"created","comment":{"url":"https://api.github.com/repos/olivere/elastic/pulls/comments/29185735","id":29185735,"diff_hunk":"@@ -157,6 +165,9 @@ func (s *ScanService) Do() (*ScanCursor, error) {\n \tif s.size != nil && *s.size > 0 {\n \t\tparams.Set(\"size\", fmt.Sprintf(\"%d\", *s.size))\n \t}\n+\tif s.fields != nil {","path":"scan.go","position":26,"original_position":26,"commit_id":"6691a39fb934ed72dd66ec89b9bdc5f43d4ea97c","original_commit_id":"6691a39fb934ed72dd66ec89b9bdc5f43d4ea97c","user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"body":"Forget it. It'll work fine... I really shouldn't comment when I'm tired.","created_at":"2015-04-27T20:12:16Z","updated_at":"2015-04-27T20:12:16Z","html_url":"https://github.com/olivere/elastic/pull/68#discussion_r29185735","pull_request_url":"https://api.github.com/repos/olivere/elastic/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/olivere/elastic/pulls/comments/29185735"},"html":{"href":"https://github.com/olivere/elastic/pull/68#discussion_r29185735"},"pull_request":{"href":"https://api.github.com/repos/olivere/elastic/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/olivere/elastic/pulls/68","id":34124766,"html_url":"https://github.com/olivere/elastic/pull/68","diff_url":"https://github.com/olivere/elastic/pull/68.diff","patch_url":"https://github.com/olivere/elastic/pull/68.patch","issue_url":"https://api.github.com/repos/olivere/elastic/issues/68","number":68,"state":"open","locked":false,"title":"Make reindexing work with child documents","user":{"login":"nwolff","id":40599,"avatar_url":"https://avatars.githubusercontent.com/u/40599?v=3","gravatar_id":"","url":"https://api.github.com/users/nwolff","html_url":"https://github.com/nwolff","followers_url":"https://api.github.com/users/nwolff/followers","following_url":"https://api.github.com/users/nwolff/following{/other_user}","gists_url":"https://api.github.com/users/nwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/nwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwolff/subscriptions","organizations_url":"https://api.github.com/users/nwolff/orgs","repos_url":"https://api.github.com/users/nwolff/repos","events_url":"https://api.github.com/users/nwolff/events{/privacy}","received_events_url":"https://api.github.com/users/nwolff/received_events","type":"User","site_admin":false},"body":"The scanner now requests the _parent field (on top of the default _source field).\r\n\r\nWhen the reindexer finds that field in the hit, it sets parent on the IndexRequest.\r\n\r\nIn index_test: Added a new 'comment' type that is a child of 'tweet' together with its mapping.\r\nAdded a comment instance to the test dataset.","created_at":"2015-04-26T15:30:10Z","updated_at":"2015-04-27T20:12:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d58dc1b6d8bc6640c4d99f902087fa03bce3f5aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/olivere/elastic/pulls/68/commits","review_comments_url":"https://api.github.com/repos/olivere/elastic/pulls/68/comments","review_comment_url":"https://api.github.com/repos/olivere/elastic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/68/comments","statuses_url":"https://api.github.com/repos/olivere/elastic/statuses/6691a39fb934ed72dd66ec89b9bdc5f43d4ea97c","head":{"label":"nwolff:reindex-with-parent","ref":"reindex-with-parent","sha":"6691a39fb934ed72dd66ec89b9bdc5f43d4ea97c","user":{"login":"nwolff","id":40599,"avatar_url":"https://avatars.githubusercontent.com/u/40599?v=3","gravatar_id":"","url":"https://api.github.com/users/nwolff","html_url":"https://github.com/nwolff","followers_url":"https://api.github.com/users/nwolff/followers","following_url":"https://api.github.com/users/nwolff/following{/other_user}","gists_url":"https://api.github.com/users/nwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/nwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwolff/subscriptions","organizations_url":"https://api.github.com/users/nwolff/orgs","repos_url":"https://api.github.com/users/nwolff/repos","events_url":"https://api.github.com/users/nwolff/events{/privacy}","received_events_url":"https://api.github.com/users/nwolff/received_events","type":"User","site_admin":false},"repo":{"id":34609848,"name":"elastic","full_name":"nwolff/elastic","owner":{"login":"nwolff","id":40599,"avatar_url":"https://avatars.githubusercontent.com/u/40599?v=3","gravatar_id":"","url":"https://api.github.com/users/nwolff","html_url":"https://github.com/nwolff","followers_url":"https://api.github.com/users/nwolff/followers","following_url":"https://api.github.com/users/nwolff/following{/other_user}","gists_url":"https://api.github.com/users/nwolff/gists{/gist_id}","starred_url":"https://api.github.com/users/nwolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwolff/subscriptions","organizations_url":"https://api.github.com/users/nwolff/orgs","repos_url":"https://api.github.com/users/nwolff/repos","events_url":"https://api.github.com/users/nwolff/events{/privacy}","received_events_url":"https://api.github.com/users/nwolff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nwolff/elastic","description":"Elasticsearch client for Go.","fork":true,"url":"https://api.github.com/repos/nwolff/elastic","forks_url":"https://api.github.com/repos/nwolff/elastic/forks","keys_url":"https://api.github.com/repos/nwolff/elastic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwolff/elastic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwolff/elastic/teams","hooks_url":"https://api.github.com/repos/nwolff/elastic/hooks","issue_events_url":"https://api.github.com/repos/nwolff/elastic/issues/events{/number}","events_url":"https://api.github.com/repos/nwolff/elastic/events","assignees_url":"https://api.github.com/repos/nwolff/elastic/assignees{/user}","branches_url":"https://api.github.com/repos/nwolff/elastic/branches{/branch}","tags_url":"https://api.github.com/repos/nwolff/elastic/tags","blobs_url":"https://api.github.com/repos/nwolff/elastic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwolff/elastic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwolff/elastic/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwolff/elastic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwolff/elastic/statuses/{sha}","languages_url":"https://api.github.com/repos/nwolff/elastic/languages","stargazers_url":"https://api.github.com/repos/nwolff/elastic/stargazers","contributors_url":"https://api.github.com/repos/nwolff/elastic/contributors","subscribers_url":"https://api.github.com/repos/nwolff/elastic/subscribers","subscription_url":"https://api.github.com/repos/nwolff/elastic/subscription","commits_url":"https://api.github.com/repos/nwolff/elastic/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwolff/elastic/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwolff/elastic/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwolff/elastic/issues/comments{/number}","contents_url":"https://api.github.com/repos/nwolff/elastic/contents/{+path}","compare_url":"https://api.github.com/repos/nwolff/elastic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwolff/elastic/merges","archive_url":"https://api.github.com/repos/nwolff/elastic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwolff/elastic/downloads","issues_url":"https://api.github.com/repos/nwolff/elastic/issues{/number}","pulls_url":"https://api.github.com/repos/nwolff/elastic/pulls{/number}","milestones_url":"https://api.github.com/repos/nwolff/elastic/milestones{/number}","notifications_url":"https://api.github.com/repos/nwolff/elastic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwolff/elastic/labels{/name}","releases_url":"https://api.github.com/repos/nwolff/elastic/releases{/id}","created_at":"2015-04-26T12:04:57Z","updated_at":"2015-04-26T14:23:11Z","pushed_at":"2015-04-27T17:59:57Z","git_url":"git://github.com/nwolff/elastic.git","ssh_url":"git@github.com:nwolff/elastic.git","clone_url":"https://github.com/nwolff/elastic.git","svn_url":"https://github.com/nwolff/elastic","homepage":"https://olivere.github.io/elastic/","size":2415,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"olivere:master","ref":"master","sha":"6d5ff8ec89d12711ff79d9e070f674e15a6f69c4","user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"repo":{"id":7039626,"name":"elastic","full_name":"olivere/elastic","owner":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olivere/elastic","description":"Elasticsearch client for Go.","fork":false,"url":"https://api.github.com/repos/olivere/elastic","forks_url":"https://api.github.com/repos/olivere/elastic/forks","keys_url":"https://api.github.com/repos/olivere/elastic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olivere/elastic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olivere/elastic/teams","hooks_url":"https://api.github.com/repos/olivere/elastic/hooks","issue_events_url":"https://api.github.com/repos/olivere/elastic/issues/events{/number}","events_url":"https://api.github.com/repos/olivere/elastic/events","assignees_url":"https://api.github.com/repos/olivere/elastic/assignees{/user}","branches_url":"https://api.github.com/repos/olivere/elastic/branches{/branch}","tags_url":"https://api.github.com/repos/olivere/elastic/tags","blobs_url":"https://api.github.com/repos/olivere/elastic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olivere/elastic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olivere/elastic/git/refs{/sha}","trees_url":"https://api.github.com/repos/olivere/elastic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olivere/elastic/statuses/{sha}","languages_url":"https://api.github.com/repos/olivere/elastic/languages","stargazers_url":"https://api.github.com/repos/olivere/elastic/stargazers","contributors_url":"https://api.github.com/repos/olivere/elastic/contributors","subscribers_url":"https://api.github.com/repos/olivere/elastic/subscribers","subscription_url":"https://api.github.com/repos/olivere/elastic/subscription","commits_url":"https://api.github.com/repos/olivere/elastic/commits{/sha}","git_commits_url":"https://api.github.com/repos/olivere/elastic/git/commits{/sha}","comments_url":"https://api.github.com/repos/olivere/elastic/comments{/number}","issue_comment_url":"https://api.github.com/repos/olivere/elastic/issues/comments{/number}","contents_url":"https://api.github.com/repos/olivere/elastic/contents/{+path}","compare_url":"https://api.github.com/repos/olivere/elastic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olivere/elastic/merges","archive_url":"https://api.github.com/repos/olivere/elastic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olivere/elastic/downloads","issues_url":"https://api.github.com/repos/olivere/elastic/issues{/number}","pulls_url":"https://api.github.com/repos/olivere/elastic/pulls{/number}","milestones_url":"https://api.github.com/repos/olivere/elastic/milestones{/number}","notifications_url":"https://api.github.com/repos/olivere/elastic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olivere/elastic/labels{/name}","releases_url":"https://api.github.com/repos/olivere/elastic/releases{/id}","created_at":"2012-12-06T17:15:33Z","updated_at":"2015-04-27T15:26:45Z","pushed_at":"2015-04-27T17:59:58Z","git_url":"git://github.com/olivere/elastic.git","ssh_url":"git@github.com:olivere/elastic.git","clone_url":"https://github.com/olivere/elastic.git","svn_url":"https://github.com/olivere/elastic","homepage":"https://olivere.github.io/elastic/","size":2415,"stargazers_count":266,"watchers_count":266,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":49,"mirror_url":null,"open_issues_count":2,"forks":49,"open_issues":2,"watchers":266,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/olivere/elastic/pulls/68"},"html":{"href":"https://github.com/olivere/elastic/pull/68"},"issue":{"href":"https://api.github.com/repos/olivere/elastic/issues/68"},"comments":{"href":"https://api.github.com/repos/olivere/elastic/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/olivere/elastic/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/olivere/elastic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/olivere/elastic/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/olivere/elastic/statuses/6691a39fb934ed72dd66ec89b9bdc5f43d4ea97c"}}}}