{"action":"created","comment":{"url":"https://api.github.com/repos/sunspot/sunspot/pulls/comments/44396961","id":44396961,"diff_hunk":"@@ -100,6 +100,22 @@ def index!(*objects)\n     end\n \n     #\n+    # See Sunspot.atomic_update\n+    #\n+    def atomic_update(clazz, updates = {})","path":"sunspot/lib/sunspot/session.rb","position":6,"original_position":6,"commit_id":"b012822d016335b9d469f5a666f9b9123e3a7ece","original_commit_id":"b012822d016335b9d469f5a666f9b9123e3a7ece","user":{"login":"bragboy","id":1298587,"avatar_url":"https://avatars.githubusercontent.com/u/1298587?v=3","gravatar_id":"","url":"https://api.github.com/users/bragboy","html_url":"https://github.com/bragboy","followers_url":"https://api.github.com/users/bragboy/followers","following_url":"https://api.github.com/users/bragboy/following{/other_user}","gists_url":"https://api.github.com/users/bragboy/gists{/gist_id}","starred_url":"https://api.github.com/users/bragboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bragboy/subscriptions","organizations_url":"https://api.github.com/users/bragboy/orgs","repos_url":"https://api.github.com/users/bragboy/repos","events_url":"https://api.github.com/users/bragboy/events{/privacy}","received_events_url":"https://api.github.com/users/bragboy/received_events","type":"User","site_admin":false},"body":"specs please ","created_at":"2015-11-10T11:43:47Z","updated_at":"2015-11-10T11:43:47Z","html_url":"https://github.com/sunspot/sunspot/pull/738#discussion_r44396961","pull_request_url":"https://api.github.com/repos/sunspot/sunspot/pulls/738","_links":{"self":{"href":"https://api.github.com/repos/sunspot/sunspot/pulls/comments/44396961"},"html":{"href":"https://github.com/sunspot/sunspot/pull/738#discussion_r44396961"},"pull_request":{"href":"https://api.github.com/repos/sunspot/sunspot/pulls/738"}}},"pull_request":{"url":"https://api.github.com/repos/sunspot/sunspot/pulls/738","id":50103254,"html_url":"https://github.com/sunspot/sunspot/pull/738","diff_url":"https://github.com/sunspot/sunspot/pull/738.diff","patch_url":"https://github.com/sunspot/sunspot/pull/738.patch","issue_url":"https://api.github.com/repos/sunspot/sunspot/issues/738","number":738,"state":"open","locked":false,"title":"Atomic updates","user":{"login":"serggl","id":53304,"avatar_url":"https://avatars.githubusercontent.com/u/53304?v=3","gravatar_id":"","url":"https://api.github.com/users/serggl","html_url":"https://github.com/serggl","followers_url":"https://api.github.com/users/serggl/followers","following_url":"https://api.github.com/users/serggl/following{/other_user}","gists_url":"https://api.github.com/users/serggl/gists{/gist_id}","starred_url":"https://api.github.com/users/serggl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serggl/subscriptions","organizations_url":"https://api.github.com/users/serggl/orgs","repos_url":"https://api.github.com/users/serggl/repos","events_url":"https://api.github.com/users/serggl/events{/privacy}","received_events_url":"https://api.github.com/users/serggl/received_events","type":"User","site_admin":false},"body":"Add atomic updates to sunspot making possible to update individual properties of indexed document without having to post a bunch of unchanged fields\r\n\r\nInspired by https://wiki.apache.org/solr/Atomic_Updates.","created_at":"2015-11-09T10:00:28Z","updated_at":"2015-11-10T11:43:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b575e328c77664d711ccbe4c748a4650867fb65","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sunspot/sunspot/pulls/738/commits","review_comments_url":"https://api.github.com/repos/sunspot/sunspot/pulls/738/comments","review_comment_url":"https://api.github.com/repos/sunspot/sunspot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sunspot/sunspot/issues/738/comments","statuses_url":"https://api.github.com/repos/sunspot/sunspot/statuses/b012822d016335b9d469f5a666f9b9123e3a7ece","head":{"label":"anjlab:atomic_updates","ref":"atomic_updates","sha":"b012822d016335b9d469f5a666f9b9123e3a7ece","user":{"login":"anjlab","id":53466,"avatar_url":"https://avatars.githubusercontent.com/u/53466?v=3","gravatar_id":"","url":"https://api.github.com/users/anjlab","html_url":"https://github.com/anjlab","followers_url":"https://api.github.com/users/anjlab/followers","following_url":"https://api.github.com/users/anjlab/following{/other_user}","gists_url":"https://api.github.com/users/anjlab/gists{/gist_id}","starred_url":"https://api.github.com/users/anjlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anjlab/subscriptions","organizations_url":"https://api.github.com/users/anjlab/orgs","repos_url":"https://api.github.com/users/anjlab/repos","events_url":"https://api.github.com/users/anjlab/events{/privacy}","received_events_url":"https://api.github.com/users/anjlab/received_events","type":"Organization","site_admin":false},"repo":{"id":45727856,"name":"sunspot","full_name":"anjlab/sunspot","owner":{"login":"anjlab","id":53466,"avatar_url":"https://avatars.githubusercontent.com/u/53466?v=3","gravatar_id":"","url":"https://api.github.com/users/anjlab","html_url":"https://github.com/anjlab","followers_url":"https://api.github.com/users/anjlab/followers","following_url":"https://api.github.com/users/anjlab/following{/other_user}","gists_url":"https://api.github.com/users/anjlab/gists{/gist_id}","starred_url":"https://api.github.com/users/anjlab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anjlab/subscriptions","organizations_url":"https://api.github.com/users/anjlab/orgs","repos_url":"https://api.github.com/users/anjlab/repos","events_url":"https://api.github.com/users/anjlab/events{/privacy}","received_events_url":"https://api.github.com/users/anjlab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/anjlab/sunspot","description":"Solr-powered search for Ruby objects","fork":true,"url":"https://api.github.com/repos/anjlab/sunspot","forks_url":"https://api.github.com/repos/anjlab/sunspot/forks","keys_url":"https://api.github.com/repos/anjlab/sunspot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anjlab/sunspot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anjlab/sunspot/teams","hooks_url":"https://api.github.com/repos/anjlab/sunspot/hooks","issue_events_url":"https://api.github.com/repos/anjlab/sunspot/issues/events{/number}","events_url":"https://api.github.com/repos/anjlab/sunspot/events","assignees_url":"https://api.github.com/repos/anjlab/sunspot/assignees{/user}","branches_url":"https://api.github.com/repos/anjlab/sunspot/branches{/branch}","tags_url":"https://api.github.com/repos/anjlab/sunspot/tags","blobs_url":"https://api.github.com/repos/anjlab/sunspot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anjlab/sunspot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anjlab/sunspot/git/refs{/sha}","trees_url":"https://api.github.com/repos/anjlab/sunspot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anjlab/sunspot/statuses/{sha}","languages_url":"https://api.github.com/repos/anjlab/sunspot/languages","stargazers_url":"https://api.github.com/repos/anjlab/sunspot/stargazers","contributors_url":"https://api.github.com/repos/anjlab/sunspot/contributors","subscribers_url":"https://api.github.com/repos/anjlab/sunspot/subscribers","subscription_url":"https://api.github.com/repos/anjlab/sunspot/subscription","commits_url":"https://api.github.com/repos/anjlab/sunspot/commits{/sha}","git_commits_url":"https://api.github.com/repos/anjlab/sunspot/git/commits{/sha}","comments_url":"https://api.github.com/repos/anjlab/sunspot/comments{/number}","issue_comment_url":"https://api.github.com/repos/anjlab/sunspot/issues/comments{/number}","contents_url":"https://api.github.com/repos/anjlab/sunspot/contents/{+path}","compare_url":"https://api.github.com/repos/anjlab/sunspot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anjlab/sunspot/merges","archive_url":"https://api.github.com/repos/anjlab/sunspot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anjlab/sunspot/downloads","issues_url":"https://api.github.com/repos/anjlab/sunspot/issues{/number}","pulls_url":"https://api.github.com/repos/anjlab/sunspot/pulls{/number}","milestones_url":"https://api.github.com/repos/anjlab/sunspot/milestones{/number}","notifications_url":"https://api.github.com/repos/anjlab/sunspot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anjlab/sunspot/labels{/name}","releases_url":"https://api.github.com/repos/anjlab/sunspot/releases{/id}","created_at":"2015-11-07T08:02:13Z","updated_at":"2015-11-07T08:02:18Z","pushed_at":"2015-11-09T09:42:59Z","git_url":"git://github.com/anjlab/sunspot.git","ssh_url":"git@github.com:anjlab/sunspot.git","clone_url":"https://github.com/anjlab/sunspot.git","svn_url":"https://github.com/anjlab/sunspot","homepage":"http://sunspot.github.com/","size":156690,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"sunspot:master","ref":"master","sha":"c9a4c1af01b5cabd5a699d372d9b3fa968b59572","user":{"login":"sunspot","id":1027744,"avatar_url":"https://avatars.githubusercontent.com/u/1027744?v=3","gravatar_id":"","url":"https://api.github.com/users/sunspot","html_url":"https://github.com/sunspot","followers_url":"https://api.github.com/users/sunspot/followers","following_url":"https://api.github.com/users/sunspot/following{/other_user}","gists_url":"https://api.github.com/users/sunspot/gists{/gist_id}","starred_url":"https://api.github.com/users/sunspot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunspot/subscriptions","organizations_url":"https://api.github.com/users/sunspot/orgs","repos_url":"https://api.github.com/users/sunspot/repos","events_url":"https://api.github.com/users/sunspot/events{/privacy}","received_events_url":"https://api.github.com/users/sunspot/received_events","type":"Organization","site_admin":false},"repo":{"id":62509,"name":"sunspot","full_name":"sunspot/sunspot","owner":{"login":"sunspot","id":1027744,"avatar_url":"https://avatars.githubusercontent.com/u/1027744?v=3","gravatar_id":"","url":"https://api.github.com/users/sunspot","html_url":"https://github.com/sunspot","followers_url":"https://api.github.com/users/sunspot/followers","following_url":"https://api.github.com/users/sunspot/following{/other_user}","gists_url":"https://api.github.com/users/sunspot/gists{/gist_id}","starred_url":"https://api.github.com/users/sunspot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunspot/subscriptions","organizations_url":"https://api.github.com/users/sunspot/orgs","repos_url":"https://api.github.com/users/sunspot/repos","events_url":"https://api.github.com/users/sunspot/events{/privacy}","received_events_url":"https://api.github.com/users/sunspot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sunspot/sunspot","description":"Solr-powered search for Ruby objects","fork":false,"url":"https://api.github.com/repos/sunspot/sunspot","forks_url":"https://api.github.com/repos/sunspot/sunspot/forks","keys_url":"https://api.github.com/repos/sunspot/sunspot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunspot/sunspot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunspot/sunspot/teams","hooks_url":"https://api.github.com/repos/sunspot/sunspot/hooks","issue_events_url":"https://api.github.com/repos/sunspot/sunspot/issues/events{/number}","events_url":"https://api.github.com/repos/sunspot/sunspot/events","assignees_url":"https://api.github.com/repos/sunspot/sunspot/assignees{/user}","branches_url":"https://api.github.com/repos/sunspot/sunspot/branches{/branch}","tags_url":"https://api.github.com/repos/sunspot/sunspot/tags","blobs_url":"https://api.github.com/repos/sunspot/sunspot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunspot/sunspot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunspot/sunspot/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunspot/sunspot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunspot/sunspot/statuses/{sha}","languages_url":"https://api.github.com/repos/sunspot/sunspot/languages","stargazers_url":"https://api.github.com/repos/sunspot/sunspot/stargazers","contributors_url":"https://api.github.com/repos/sunspot/sunspot/contributors","subscribers_url":"https://api.github.com/repos/sunspot/sunspot/subscribers","subscription_url":"https://api.github.com/repos/sunspot/sunspot/subscription","commits_url":"https://api.github.com/repos/sunspot/sunspot/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunspot/sunspot/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunspot/sunspot/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunspot/sunspot/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunspot/sunspot/contents/{+path}","compare_url":"https://api.github.com/repos/sunspot/sunspot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunspot/sunspot/merges","archive_url":"https://api.github.com/repos/sunspot/sunspot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunspot/sunspot/downloads","issues_url":"https://api.github.com/repos/sunspot/sunspot/issues{/number}","pulls_url":"https://api.github.com/repos/sunspot/sunspot/pulls{/number}","milestones_url":"https://api.github.com/repos/sunspot/sunspot/milestones{/number}","notifications_url":"https://api.github.com/repos/sunspot/sunspot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunspot/sunspot/labels{/name}","releases_url":"https://api.github.com/repos/sunspot/sunspot/releases{/id}","created_at":"2008-10-13T15:46:40Z","updated_at":"2015-11-10T06:24:38Z","pushed_at":"2015-11-09T10:00:29Z","git_url":"git://github.com/sunspot/sunspot.git","ssh_url":"git@github.com:sunspot/sunspot.git","clone_url":"https://github.com/sunspot/sunspot.git","svn_url":"https://github.com/sunspot/sunspot","homepage":"http://sunspot.github.com/","size":156690,"stargazers_count":2438,"watchers_count":2438,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":779,"mirror_url":null,"open_issues_count":208,"forks":779,"open_issues":208,"watchers":2438,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sunspot/sunspot/pulls/738"},"html":{"href":"https://github.com/sunspot/sunspot/pull/738"},"issue":{"href":"https://api.github.com/repos/sunspot/sunspot/issues/738"},"comments":{"href":"https://api.github.com/repos/sunspot/sunspot/issues/738/comments"},"review_comments":{"href":"https://api.github.com/repos/sunspot/sunspot/pulls/738/comments"},"review_comment":{"href":"https://api.github.com/repos/sunspot/sunspot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sunspot/sunspot/pulls/738/commits"},"statuses":{"href":"https://api.github.com/repos/sunspot/sunspot/statuses/b012822d016335b9d469f5a666f9b9123e3a7ece"}}}}