{"action":"closed","number":19566,"pull_request":{"url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19566","id":78586389,"html_url":"https://github.com/elastic/elasticsearch/pull/19566","diff_url":"https://github.com/elastic/elasticsearch/pull/19566.diff","patch_url":"https://github.com/elastic/elasticsearch/pull/19566.patch","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19566","number":19566,"state":"closed","locked":false,"title":"Adding _operation field to index, update, delete response.","user":{"login":"a2lin","id":1472550,"avatar_url":"https://avatars.githubusercontent.com/u/1472550?v=3","gravatar_id":"","url":"https://api.github.com/users/a2lin","html_url":"https://github.com/a2lin","followers_url":"https://api.github.com/users/a2lin/followers","following_url":"https://api.github.com/users/a2lin/following{/other_user}","gists_url":"https://api.github.com/users/a2lin/gists{/gist_id}","starred_url":"https://api.github.com/users/a2lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2lin/subscriptions","organizations_url":"https://api.github.com/users/a2lin/orgs","repos_url":"https://api.github.com/users/a2lin/repos","events_url":"https://api.github.com/users/a2lin/events{/privacy}","received_events_url":"https://api.github.com/users/a2lin/received_events","type":"User","site_admin":false},"body":"Revival of #9736\r\nCloses #9642\r\nCloses #19267\r\n\r\nI attempted to follow the steps suggested by @nik9000 in #9736. \r\nI was unsure of whether the IndexResponse#isCreated method and \"created\": field should be changed, as the version of ES is way past 2.0.0, when the original comment was written, so I left them.\r\n\r\nPerforming the bulk request shown in #19267 now results in the following:\r\n`{\"_index\":\"test\",\"_type\":\"test\",\"_id\":\"1\",\"_version\":1,\"_operation\":\"create\",\"forced_refresh\":false,\"_shards\":{\"total\":2,\"successful\":1,\"failed\":0},\"status\":201}`\r\n`{\"_index\":\"test\",\"_type\":\"test\",\"_id\":\"1\",\"_version\":1,\"_operation\":\"noop\",\"forced_refresh\":false,\"_shards\":{\"total\":2,\"successful\":1,\"failed\":0},\"status\":200}`","created_at":"2016-07-24T00:42:52Z","updated_at":"2016-07-26T15:16:20Z","closed_at":"2016-07-26T15:16:19Z","merged_at":"2016-07-26T15:16:19Z","merge_commit_sha":"8f2882a442fb6deaab5b645dfc80577193dfb81f","assignee":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"assignees":[{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19566/commits","review_comments_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/19566/comments","review_comment_url":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/19566/comments","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/ae9f3d05cb88e0cf09bb4152275964d5b8672333","head":{"label":"a2lin:noop_response","ref":"noop_response","sha":"ae9f3d05cb88e0cf09bb4152275964d5b8672333","user":{"login":"a2lin","id":1472550,"avatar_url":"https://avatars.githubusercontent.com/u/1472550?v=3","gravatar_id":"","url":"https://api.github.com/users/a2lin","html_url":"https://github.com/a2lin","followers_url":"https://api.github.com/users/a2lin/followers","following_url":"https://api.github.com/users/a2lin/following{/other_user}","gists_url":"https://api.github.com/users/a2lin/gists{/gist_id}","starred_url":"https://api.github.com/users/a2lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2lin/subscriptions","organizations_url":"https://api.github.com/users/a2lin/orgs","repos_url":"https://api.github.com/users/a2lin/repos","events_url":"https://api.github.com/users/a2lin/events{/privacy}","received_events_url":"https://api.github.com/users/a2lin/received_events","type":"User","site_admin":false},"repo":{"id":58278697,"name":"elasticsearch","full_name":"a2lin/elasticsearch","owner":{"login":"a2lin","id":1472550,"avatar_url":"https://avatars.githubusercontent.com/u/1472550?v=3","gravatar_id":"","url":"https://api.github.com/users/a2lin","html_url":"https://github.com/a2lin","followers_url":"https://api.github.com/users/a2lin/followers","following_url":"https://api.github.com/users/a2lin/following{/other_user}","gists_url":"https://api.github.com/users/a2lin/gists{/gist_id}","starred_url":"https://api.github.com/users/a2lin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a2lin/subscriptions","organizations_url":"https://api.github.com/users/a2lin/orgs","repos_url":"https://api.github.com/users/a2lin/repos","events_url":"https://api.github.com/users/a2lin/events{/privacy}","received_events_url":"https://api.github.com/users/a2lin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/a2lin/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":true,"url":"https://api.github.com/repos/a2lin/elasticsearch","forks_url":"https://api.github.com/repos/a2lin/elasticsearch/forks","keys_url":"https://api.github.com/repos/a2lin/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/a2lin/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/a2lin/elasticsearch/teams","hooks_url":"https://api.github.com/repos/a2lin/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/a2lin/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/a2lin/elasticsearch/events","assignees_url":"https://api.github.com/repos/a2lin/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/a2lin/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/a2lin/elasticsearch/tags","blobs_url":"https://api.github.com/repos/a2lin/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/a2lin/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/a2lin/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/a2lin/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/a2lin/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/a2lin/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/a2lin/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/a2lin/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/a2lin/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/a2lin/elasticsearch/subscription","commits_url":"https://api.github.com/repos/a2lin/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/a2lin/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/a2lin/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/a2lin/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/a2lin/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/a2lin/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/a2lin/elasticsearch/merges","archive_url":"https://api.github.com/repos/a2lin/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/a2lin/elasticsearch/downloads","issues_url":"https://api.github.com/repos/a2lin/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/a2lin/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/a2lin/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/a2lin/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/a2lin/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/a2lin/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/a2lin/elasticsearch/deployments","created_at":"2016-05-07T18:17:03Z","updated_at":"2016-05-07T18:17:26Z","pushed_at":"2016-07-26T07:33:39Z","git_url":"git://github.com/a2lin/elasticsearch.git","ssh_url":"git@github.com:a2lin/elasticsearch.git","clone_url":"https://github.com/a2lin/elasticsearch.git","svn_url":"https://github.com/a2lin/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":233706,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"elastic:master","ref":"master","sha":"cd596772ee1ba48296371fdb4fb035a3c1cc7eda","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":507775,"name":"elasticsearch","full_name":"elastic/elasticsearch","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/elasticsearch","description":"Open Source, Distributed, RESTful Search Engine","fork":false,"url":"https://api.github.com/repos/elastic/elasticsearch","forks_url":"https://api.github.com/repos/elastic/elasticsearch/forks","keys_url":"https://api.github.com/repos/elastic/elasticsearch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/elasticsearch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/elasticsearch/teams","hooks_url":"https://api.github.com/repos/elastic/elasticsearch/hooks","issue_events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/elasticsearch/events","assignees_url":"https://api.github.com/repos/elastic/elasticsearch/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/elasticsearch/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/elasticsearch/tags","blobs_url":"https://api.github.com/repos/elastic/elasticsearch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/elasticsearch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/elasticsearch/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/elasticsearch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/elasticsearch/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/elasticsearch/languages","stargazers_url":"https://api.github.com/repos/elastic/elasticsearch/stargazers","contributors_url":"https://api.github.com/repos/elastic/elasticsearch/contributors","subscribers_url":"https://api.github.com/repos/elastic/elasticsearch/subscribers","subscription_url":"https://api.github.com/repos/elastic/elasticsearch/subscription","commits_url":"https://api.github.com/repos/elastic/elasticsearch/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/elasticsearch/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/elasticsearch/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/elasticsearch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/elasticsearch/merges","archive_url":"https://api.github.com/repos/elastic/elasticsearch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/elasticsearch/downloads","issues_url":"https://api.github.com/repos/elastic/elasticsearch/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/elasticsearch/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/elasticsearch/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/elasticsearch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/elasticsearch/labels{/name}","releases_url":"https://api.github.com/repos/elastic/elasticsearch/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/elasticsearch/deployments","created_at":"2010-02-08T13:20:56Z","updated_at":"2016-07-26T15:09:40Z","pushed_at":"2016-07-26T15:16:19Z","git_url":"git://github.com/elastic/elasticsearch.git","ssh_url":"git@github.com:elastic/elasticsearch.git","clone_url":"https://github.com/elastic/elasticsearch.git","svn_url":"https://github.com/elastic/elasticsearch","homepage":"https://www.elastic.co/products/elasticsearch","size":337049,"stargazers_count":17563,"watchers_count":17563,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5948,"mirror_url":null,"open_issues_count":1088,"forks":5948,"open_issues":1088,"watchers":17563,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19566"},"html":{"href":"https://github.com/elastic/elasticsearch/pull/19566"},"issue":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/19566"},"comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/issues/19566/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19566/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/elasticsearch/pulls/19566/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/elasticsearch/statuses/ae9f3d05cb88e0cf09bb4152275964d5b8672333"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nik9000","id":215970,"avatar_url":"https://avatars.githubusercontent.com/u/215970?v=3","gravatar_id":"","url":"https://api.github.com/users/nik9000","html_url":"https://github.com/nik9000","followers_url":"https://api.github.com/users/nik9000/followers","following_url":"https://api.github.com/users/nik9000/following{/other_user}","gists_url":"https://api.github.com/users/nik9000/gists{/gist_id}","starred_url":"https://api.github.com/users/nik9000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nik9000/subscriptions","organizations_url":"https://api.github.com/users/nik9000/orgs","repos_url":"https://api.github.com/users/nik9000/repos","events_url":"https://api.github.com/users/nik9000/events{/privacy}","received_events_url":"https://api.github.com/users/nik9000/received_events","type":"User","site_admin":false},"comments":6,"review_comments":20,"commits":3,"additions":224,"deletions":100,"changed_files":15}}
{"actor":{"display_login":"nik9000"}}