--TEST-- Solr Bug #70495 - Failed to parse 500 error response when Solr it lacks msg JSON RW --SKIPIF-- --FILE-- SOLR_SERVER_HOSTNAME, 'login' => SOLR_SERVER_USERNAME, 'password' => SOLR_SERVER_PASSWORD, 'port' => SOLR_SERVER_PORT, 'path' => SOLR_SERVER_PATH, 'wt' => 'json' ); $client = new SolrClient($options); $query = new SolrQuery('*:*'); $func = new SolrCollapseFunction('manu_id_s'); $func->setMax('sum(cscore(),field(manu_id_s))'); $func->setSize(100); $func->setNullPolicy(SolrCollapseFunction::NULLPOLICY_EXPAND); $query->collapse($func); try { $queryResponse = $client->query($query); } catch (SolrServerException $e) { printf("Exception code %d", $e->getCode()); assert(strlen($e->getMessage()) > 0, 'Exception message is empty'); } ?> OK --EXPECTF-- Exception code 500 OK