{"action":"created","issue":{"url":"https://api.github.com/repos/solariumphp/solarium/issues/344","labels_url":"https://api.github.com/repos/solariumphp/solarium/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/solariumphp/solarium/issues/344/comments","events_url":"https://api.github.com/repos/solariumphp/solarium/issues/344/events","html_url":"https://github.com/solariumphp/solarium/issues/344","id":88385070,"number":344,"title":"Spellcheck collate(true) causes exception","user":{"login":"demichl68","id":4621362,"avatar_url":"https://avatars.githubusercontent.com/u/4621362?v=3","gravatar_id":"","url":"https://api.github.com/users/demichl68","html_url":"https://github.com/demichl68","followers_url":"https://api.github.com/users/demichl68/followers","following_url":"https://api.github.com/users/demichl68/following{/other_user}","gists_url":"https://api.github.com/users/demichl68/gists{/gist_id}","starred_url":"https://api.github.com/users/demichl68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demichl68/subscriptions","organizations_url":"https://api.github.com/users/demichl68/orgs","repos_url":"https://api.github.com/users/demichl68/repos","events_url":"https://api.github.com/users/demichl68/events{/privacy}","received_events_url":"https://api.github.com/users/demichl68/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T10:33:34Z","updated_at":"2015-06-15T11:16:46Z","closed_at":"2015-06-15T11:16:46Z","body":"Hi!\r\n\r\nWhen i use the spellcheck component and set collate to true, an exception is raised in \r\n> Solarium\\QueryType\\Select\\ResponseParser\\Component\\Spellcheck \r\nline ```136``` \r\n> Invalid argument supplied for foreach()\r\n\r\nI'm on Solr 4.10, Solarium 3.2.0, but this issue is still relevant for the current release (3.4.1) \r\n\r\nHere's the code that causes the exception:\r\n\r\n```\r\n$spellcheck = $query->getSpellcheck();\r\n$spellcheck->setQuery(\"something\");\r\n$spellcheck->setBuild(false);\r\n$spellcheck->setCollate(true);\r\n$spellcheck->setExtendedResults(true);\r\n$spellcheck->setCollateExtendedResults(true);\r\n$spellcheck->setCount(5);\r\n```\r\n\r\nAny suggestions?\r\n"},"comment":{"url":"https://api.github.com/repos/solariumphp/solarium/issues/comments/112022418","html_url":"https://github.com/solariumphp/solarium/issues/344#issuecomment-112022418","issue_url":"https://api.github.com/repos/solariumphp/solarium/issues/344","id":112022418,"user":{"login":"demichl68","id":4621362,"avatar_url":"https://avatars.githubusercontent.com/u/4621362?v=3","gravatar_id":"","url":"https://api.github.com/users/demichl68","html_url":"https://github.com/demichl68","followers_url":"https://api.github.com/users/demichl68/followers","following_url":"https://api.github.com/users/demichl68/following{/other_user}","gists_url":"https://api.github.com/users/demichl68/gists{/gist_id}","starred_url":"https://api.github.com/users/demichl68/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demichl68/subscriptions","organizations_url":"https://api.github.com/users/demichl68/orgs","repos_url":"https://api.github.com/users/demichl68/repos","events_url":"https://api.github.com/users/demichl68/events{/privacy}","received_events_url":"https://api.github.com/users/demichl68/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T11:16:46Z","updated_at":"2015-06-15T11:16:46Z","body":"The source of this issue is completely homemade...\r\nIts not a bug in Solarium! \r\nSorry for the inconvenience!\r\n"}}