{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/15525","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15525/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15525/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15525/events","html_url":"https://github.com/elastic/elasticsearch/issues/15525","id":122882067,"number":15525,"title":"doc() array size error","user":{"login":"YunchaoGongSC","id":12436977,"avatar_url":"https://avatars.githubusercontent.com/u/12436977?v=3","gravatar_id":"","url":"https://api.github.com/users/YunchaoGongSC","html_url":"https://github.com/YunchaoGongSC","followers_url":"https://api.github.com/users/YunchaoGongSC/followers","following_url":"https://api.github.com/users/YunchaoGongSC/following{/other_user}","gists_url":"https://api.github.com/users/YunchaoGongSC/gists{/gist_id}","starred_url":"https://api.github.com/users/YunchaoGongSC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YunchaoGongSC/subscriptions","organizations_url":"https://api.github.com/users/YunchaoGongSC/orgs","repos_url":"https://api.github.com/users/YunchaoGongSC/repos","events_url":"https://api.github.com/users/YunchaoGongSC/events{/privacy}","received_events_url":"https://api.github.com/users/YunchaoGongSC/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-18T05:29:51Z","updated_at":"2015-12-18T13:07:54Z","closed_at":"2015-12-18T13:07:54Z","body":"Hello\r\n\r\nI tried to index an double array {1, 2, 3, 4, 5} and let ES automatically detect the type. Then I wrote a plugin to get the value as follows\r\n\r\nScriptDocValues docHashValues = (ScriptDocValues) doc().get(\"array\");\r\nfinal List<Double> tmp = ((ScriptDocValues.Doubles) docHashValues).getValues();\r\n\r\nHowever I found the tmp size is always <= 4. Is this a bug or there are some limitations for array size in ES? Thanks!"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/165773171","html_url":"https://github.com/elastic/elasticsearch/issues/15525#issuecomment-165773171","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/15525","id":165773171,"user":{"login":"jpountz","id":299848,"avatar_url":"https://avatars.githubusercontent.com/u/299848?v=3","gravatar_id":"","url":"https://api.github.com/users/jpountz","html_url":"https://github.com/jpountz","followers_url":"https://api.github.com/users/jpountz/followers","following_url":"https://api.github.com/users/jpountz/following{/other_user}","gists_url":"https://api.github.com/users/jpountz/gists{/gist_id}","starred_url":"https://api.github.com/users/jpountz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpountz/subscriptions","organizations_url":"https://api.github.com/users/jpountz/orgs","repos_url":"https://api.github.com/users/jpountz/repos","events_url":"https://api.github.com/users/jpountz/events{/privacy}","received_events_url":"https://api.github.com/users/jpountz/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T13:07:54Z","updated_at":"2015-12-18T13:07:54Z","body":"This is expected if your field does not have doc values enabled as fielddata does not retain duplicates. To fix this problem you would have to reindex your data in an index that has doc values enabled on this field (default on and after 2.0)."}}