Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 448 Bytes

README.MIGRATION-2.0-TO-2.1.md

File metadata and controls

17 lines (14 loc) · 448 Bytes

Migrating from PECL Solr 2.0 to PECL Solr 2.1

If you are using json Response Writer: Version 2.0 and 1.*

$result = $client->query($query);
$result->getResponse();
// ^ SolrResponse::getResponse() returns an array

Version 2.1:

SolrResponse::getResponse() returns a SolrObject

You can still get an array from the SolrResponse object but by using SolrResponse::getArrayResponse()