{"action":"opened","number":346,"pull_request":{"url":"https://api.github.com/repos/sksamuel/elastic4s/pulls/346","id":38862963,"html_url":"https://github.com/sksamuel/elastic4s/pull/346","diff_url":"https://github.com/sksamuel/elastic4s/pull/346.diff","patch_url":"https://github.com/sksamuel/elastic4s/pull/346.patch","issue_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/346","number":346,"state":"open","locked":false,"title":"Support explicit field types in the update dsl","user":{"login":"olger","id":734430,"avatar_url":"https://avatars.githubusercontent.com/u/734430?v=3","gravatar_id":"","url":"https://api.github.com/users/olger","html_url":"https://github.com/olger","followers_url":"https://api.github.com/users/olger/followers","following_url":"https://api.github.com/users/olger/following{/other_user}","gists_url":"https://api.github.com/users/olger/gists{/gist_id}","starred_url":"https://api.github.com/users/olger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olger/subscriptions","organizations_url":"https://api.github.com/users/olger/orgs","repos_url":"https://api.github.com/users/olger/repos","events_url":"https://api.github.com/users/olger/events{/privacy}","received_events_url":"https://api.github.com/users/olger/received_events","type":"User","site_admin":false},"body":"Hi Stephen, \r\n\r\nYour elastic4s library has been in use within our projects for quite a while and really love the way it works. \r\nI am using explicit types to render certain json field (spray json / json4s) in a proper way in the elasticsearch source. \r\nIn order to update these fields, I need the support for explicit fields in the updateDSL. This pull request adds that support in 2 ways. \r\n\r\nFirst is to update the doc with a FieldValue that is not using the FieldsMapper, second is via the FieldsMapper (docAsUpsert (\"captain\" -> SimpleFieldValue(\"james\", \"kirk\")) \r\n\r\nTests and documentation is added for the addition. \r\n\r\nKind regards, \r\n\r\nOlger\r\n","created_at":"2015-06-30T10:23:19Z","updated_at":"2015-06-30T10:23:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sksamuel/elastic4s/pulls/346/commits","review_comments_url":"https://api.github.com/repos/sksamuel/elastic4s/pulls/346/comments","review_comment_url":"https://api.github.com/repos/sksamuel/elastic4s/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/346/comments","statuses_url":"https://api.github.com/repos/sksamuel/elastic4s/statuses/3621268dc2abbad9e7b24fdb23fdd84e47a9db88","head":{"label":"spectare:master","ref":"master","sha":"3621268dc2abbad9e7b24fdb23fdd84e47a9db88","user":{"login":"spectare","id":8425788,"avatar_url":"https://avatars.githubusercontent.com/u/8425788?v=3","gravatar_id":"","url":"https://api.github.com/users/spectare","html_url":"https://github.com/spectare","followers_url":"https://api.github.com/users/spectare/followers","following_url":"https://api.github.com/users/spectare/following{/other_user}","gists_url":"https://api.github.com/users/spectare/gists{/gist_id}","starred_url":"https://api.github.com/users/spectare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spectare/subscriptions","organizations_url":"https://api.github.com/users/spectare/orgs","repos_url":"https://api.github.com/users/spectare/repos","events_url":"https://api.github.com/users/spectare/events{/privacy}","received_events_url":"https://api.github.com/users/spectare/received_events","type":"Organization","site_admin":false},"repo":{"id":38292766,"name":"elastic4s","full_name":"spectare/elastic4s","owner":{"login":"spectare","id":8425788,"avatar_url":"https://avatars.githubusercontent.com/u/8425788?v=3","gravatar_id":"","url":"https://api.github.com/users/spectare","html_url":"https://github.com/spectare","followers_url":"https://api.github.com/users/spectare/followers","following_url":"https://api.github.com/users/spectare/following{/other_user}","gists_url":"https://api.github.com/users/spectare/gists{/gist_id}","starred_url":"https://api.github.com/users/spectare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spectare/subscriptions","organizations_url":"https://api.github.com/users/spectare/orgs","repos_url":"https://api.github.com/users/spectare/repos","events_url":"https://api.github.com/users/spectare/events{/privacy}","received_events_url":"https://api.github.com/users/spectare/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spectare/elastic4s","description":"Non blocking, type safe DSL and Scala client for Elasticsearch","fork":true,"url":"https://api.github.com/repos/spectare/elastic4s","forks_url":"https://api.github.com/repos/spectare/elastic4s/forks","keys_url":"https://api.github.com/repos/spectare/elastic4s/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spectare/elastic4s/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spectare/elastic4s/teams","hooks_url":"https://api.github.com/repos/spectare/elastic4s/hooks","issue_events_url":"https://api.github.com/repos/spectare/elastic4s/issues/events{/number}","events_url":"https://api.github.com/repos/spectare/elastic4s/events","assignees_url":"https://api.github.com/repos/spectare/elastic4s/assignees{/user}","branches_url":"https://api.github.com/repos/spectare/elastic4s/branches{/branch}","tags_url":"https://api.github.com/repos/spectare/elastic4s/tags","blobs_url":"https://api.github.com/repos/spectare/elastic4s/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spectare/elastic4s/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spectare/elastic4s/git/refs{/sha}","trees_url":"https://api.github.com/repos/spectare/elastic4s/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spectare/elastic4s/statuses/{sha}","languages_url":"https://api.github.com/repos/spectare/elastic4s/languages","stargazers_url":"https://api.github.com/repos/spectare/elastic4s/stargazers","contributors_url":"https://api.github.com/repos/spectare/elastic4s/contributors","subscribers_url":"https://api.github.com/repos/spectare/elastic4s/subscribers","subscription_url":"https://api.github.com/repos/spectare/elastic4s/subscription","commits_url":"https://api.github.com/repos/spectare/elastic4s/commits{/sha}","git_commits_url":"https://api.github.com/repos/spectare/elastic4s/git/commits{/sha}","comments_url":"https://api.github.com/repos/spectare/elastic4s/comments{/number}","issue_comment_url":"https://api.github.com/repos/spectare/elastic4s/issues/comments{/number}","contents_url":"https://api.github.com/repos/spectare/elastic4s/contents/{+path}","compare_url":"https://api.github.com/repos/spectare/elastic4s/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spectare/elastic4s/merges","archive_url":"https://api.github.com/repos/spectare/elastic4s/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spectare/elastic4s/downloads","issues_url":"https://api.github.com/repos/spectare/elastic4s/issues{/number}","pulls_url":"https://api.github.com/repos/spectare/elastic4s/pulls{/number}","milestones_url":"https://api.github.com/repos/spectare/elastic4s/milestones{/number}","notifications_url":"https://api.github.com/repos/spectare/elastic4s/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spectare/elastic4s/labels{/name}","releases_url":"https://api.github.com/repos/spectare/elastic4s/releases{/id}","created_at":"2015-06-30T06:51:54Z","updated_at":"2015-06-30T06:51:54Z","pushed_at":"2015-06-30T10:15:00Z","git_url":"git://github.com/spectare/elastic4s.git","ssh_url":"git@github.com:spectare/elastic4s.git","clone_url":"https://github.com/spectare/elastic4s.git","svn_url":"https://github.com/spectare/elastic4s","homepage":"","size":5612,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"master"}},"base":{"label":"sksamuel:master","ref":"master","sha":"c5af64815bb2f0e261b06a8474de9aa89ba026a7","user":{"login":"sksamuel","id":743706,"avatar_url":"https://avatars.githubusercontent.com/u/743706?v=3","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"repo":{"id":10608695,"name":"elastic4s","full_name":"sksamuel/elastic4s","owner":{"login":"sksamuel","id":743706,"avatar_url":"https://avatars.githubusercontent.com/u/743706?v=3","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sksamuel/elastic4s","description":"Non blocking, type safe DSL and Scala client for Elasticsearch","fork":false,"url":"https://api.github.com/repos/sksamuel/elastic4s","forks_url":"https://api.github.com/repos/sksamuel/elastic4s/forks","keys_url":"https://api.github.com/repos/sksamuel/elastic4s/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sksamuel/elastic4s/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sksamuel/elastic4s/teams","hooks_url":"https://api.github.com/repos/sksamuel/elastic4s/hooks","issue_events_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/events{/number}","events_url":"https://api.github.com/repos/sksamuel/elastic4s/events","assignees_url":"https://api.github.com/repos/sksamuel/elastic4s/assignees{/user}","branches_url":"https://api.github.com/repos/sksamuel/elastic4s/branches{/branch}","tags_url":"https://api.github.com/repos/sksamuel/elastic4s/tags","blobs_url":"https://api.github.com/repos/sksamuel/elastic4s/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sksamuel/elastic4s/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sksamuel/elastic4s/git/refs{/sha}","trees_url":"https://api.github.com/repos/sksamuel/elastic4s/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sksamuel/elastic4s/statuses/{sha}","languages_url":"https://api.github.com/repos/sksamuel/elastic4s/languages","stargazers_url":"https://api.github.com/repos/sksamuel/elastic4s/stargazers","contributors_url":"https://api.github.com/repos/sksamuel/elastic4s/contributors","subscribers_url":"https://api.github.com/repos/sksamuel/elastic4s/subscribers","subscription_url":"https://api.github.com/repos/sksamuel/elastic4s/subscription","commits_url":"https://api.github.com/repos/sksamuel/elastic4s/commits{/sha}","git_commits_url":"https://api.github.com/repos/sksamuel/elastic4s/git/commits{/sha}","comments_url":"https://api.github.com/repos/sksamuel/elastic4s/comments{/number}","issue_comment_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/comments{/number}","contents_url":"https://api.github.com/repos/sksamuel/elastic4s/contents/{+path}","compare_url":"https://api.github.com/repos/sksamuel/elastic4s/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sksamuel/elastic4s/merges","archive_url":"https://api.github.com/repos/sksamuel/elastic4s/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sksamuel/elastic4s/downloads","issues_url":"https://api.github.com/repos/sksamuel/elastic4s/issues{/number}","pulls_url":"https://api.github.com/repos/sksamuel/elastic4s/pulls{/number}","milestones_url":"https://api.github.com/repos/sksamuel/elastic4s/milestones{/number}","notifications_url":"https://api.github.com/repos/sksamuel/elastic4s/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sksamuel/elastic4s/labels{/name}","releases_url":"https://api.github.com/repos/sksamuel/elastic4s/releases{/id}","created_at":"2013-06-10T20:23:57Z","updated_at":"2015-06-29T09:59:46Z","pushed_at":"2015-06-28T14:41:54Z","git_url":"git://github.com/sksamuel/elastic4s.git","ssh_url":"git@github.com:sksamuel/elastic4s.git","clone_url":"https://github.com/sksamuel/elastic4s.git","svn_url":"https://github.com/sksamuel/elastic4s","homepage":"","size":5612,"stargazers_count":382,"watchers_count":382,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":5,"forks":133,"open_issues":5,"watchers":382,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sksamuel/elastic4s/pulls/346"},"html":{"href":"https://github.com/sksamuel/elastic4s/pull/346"},"issue":{"href":"https://api.github.com/repos/sksamuel/elastic4s/issues/346"},"comments":{"href":"https://api.github.com/repos/sksamuel/elastic4s/issues/346/comments"},"review_comments":{"href":"https://api.github.com/repos/sksamuel/elastic4s/pulls/346/comments"},"review_comment":{"href":"https://api.github.com/repos/sksamuel/elastic4s/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sksamuel/elastic4s/pulls/346/commits"},"statuses":{"href":"https://api.github.com/repos/sksamuel/elastic4s/statuses/3621268dc2abbad9e7b24fdb23fdd84e47a9db88"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":51,"deletions":1,"changed_files":4}}