{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/255","labels_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/255/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/255/events","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/255","id":41238401,"number":255,"title":"Feature - Setting ids in spark w/o using a Map","user":{"login":"chrislovecnm","id":335402,"avatar_url":"https://avatars.githubusercontent.com/u/335402?v=3","gravatar_id":"","url":"https://api.github.com/users/chrislovecnm","html_url":"https://github.com/chrislovecnm","followers_url":"https://api.github.com/users/chrislovecnm/followers","following_url":"https://api.github.com/users/chrislovecnm/following{/other_user}","gists_url":"https://api.github.com/users/chrislovecnm/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislovecnm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislovecnm/subscriptions","organizations_url":"https://api.github.com/users/chrislovecnm/orgs","repos_url":"https://api.github.com/users/chrislovecnm/repos","events_url":"https://api.github.com/users/chrislovecnm/events{/privacy}","received_events_url":"https://api.github.com/users/chrislovecnm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/spark","name":"spark","color":"006b75"},{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/labels/v2.1.0.Beta4","name":"v2.1.0.Beta4","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-08-27T00:39:36Z","updated_at":"2015-04-28T14:48:45Z","closed_at":"2015-04-28T14:48:45Z","body":"Hi all\r\n\r\nI believe that the only way that one can set their own id is to use a Map Object.  This is a request for a feature to send in the id in the rdd with spark.  In Scala an idea would be to have:\r\n\r\n<pre><code>\r\nval data: RDD[((String,Object))] = ...\r\ndata.saveToEs(\"foo/bar\")\r\n</code>\r\n</pre> \r\n\r\nIn essence have the capability to define my own id and use either an object or json. If this capability does exist, please improve the documentation so that I have examples of it."},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/comments/97090706","html_url":"https://github.com/elastic/elasticsearch-hadoop/issues/255#issuecomment-97090706","issue_url":"https://api.github.com/repos/elastic/elasticsearch-hadoop/issues/255","id":97090706,"user":{"login":"costin","id":76245,"avatar_url":"https://avatars.githubusercontent.com/u/76245?v=3","gravatar_id":"","url":"https://api.github.com/users/costin","html_url":"https://github.com/costin","followers_url":"https://api.github.com/users/costin/followers","following_url":"https://api.github.com/users/costin/following{/other_user}","gists_url":"https://api.github.com/users/costin/gists{/gist_id}","starred_url":"https://api.github.com/users/costin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/costin/subscriptions","organizations_url":"https://api.github.com/users/costin/orgs","repos_url":"https://api.github.com/users/costin/repos","events_url":"https://api.github.com/users/costin/events{/privacy}","received_events_url":"https://api.github.com/users/costin/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T14:48:45Z","updated_at":"2015-04-28T14:48:45Z","body":"Closing the issue. Beta4 is about to be released."}}