{"action":"created","issue":{"url":"https://api.github.com/repos/sksamuel/elastic4s/issues/699","repository_url":"https://api.github.com/repos/sksamuel/elastic4s","labels_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/699/labels{/name}","comments_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/699/comments","events_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/699/events","html_url":"https://github.com/sksamuel/elastic4s/issues/699","id":196208960,"number":699,"title":"java.getFields empty results","user":{"login":"od0","id":2206712,"avatar_url":"https://avatars.githubusercontent.com/u/2206712?v=3","gravatar_id":"","url":"https://api.github.com/users/od0","html_url":"https://github.com/od0","followers_url":"https://api.github.com/users/od0/followers","following_url":"https://api.github.com/users/od0/following{/other_user}","gists_url":"https://api.github.com/users/od0/gists{/gist_id}","starred_url":"https://api.github.com/users/od0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/od0/subscriptions","organizations_url":"https://api.github.com/users/od0/orgs","repos_url":"https://api.github.com/users/od0/repos","events_url":"https://api.github.com/users/od0/events{/privacy}","received_events_url":"https://api.github.com/users/od0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-17T07:51:20Z","updated_at":"2016-12-17T19:20:49Z","closed_at":null,"body":"Running version 5.1.1\r\n\r\n`elasticSearchResp.hits.map(_.fields)` and `elasticSearchResp.hits.map(_.java.getFields)` both return empty results:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2206712/21285315/1ee0e3a4-c403-11e6-85ba-6e0299595a17.png)\r\n\r\nThe fields are present though, and `elasticSearchResp.hits.map(_.sourceAsMap)` returns the expected result and the fields can be accessed:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/2206712/21285332/760d27aa-c403-11e6-9532-b90acf2fe50d.png)\r\n\r\nIt's late and maybe I'm missing something, but this was working for me before upgrading to ES5 :)\r\n\r\nI can work around this but wanted to bubble up in case this actually a bug with the Java API"},"comment":{"url":"https://api.github.com/repos/sksamuel/elastic4s/issues/comments/267781716","html_url":"https://github.com/sksamuel/elastic4s/issues/699#issuecomment-267781716","issue_url":"https://api.github.com/repos/sksamuel/elastic4s/issues/699","id":267781716,"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},"created_at":"2016-12-17T19:20:48Z","updated_at":"2016-12-17T19:20:48Z","body":"It's a change in elasticsearch.\r\n\r\n> The fields parameter has been replaced by stored_fields. The stored_fields parameter will only return stored fields — it will no longer extract values from the _source."}}
{"actor":{"display_login":"sksamuel"}}