|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67579 SolrResponse: SolrObject Hydration for json response writer
Submitted: 2014-07-06 17:51 UTC Modified: 2015-01-11 20:48 UTC
From: Assigned: omars (profile)
Status: Closed Package: solr (PECL)
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2014-07-06 17:51 UTC]
Using 'json' response writer currently returns the response of SolrResponse::getResponse() to an array, a SolrObject shall be returned

Test script:
$options = array (
		'hostname' => SOLR_SERVER_HOSTNAME,
		'password' => SOLR_SERVER_PASSWORD,
		'port' => SOLR_SERVER_PORT,
		'path' => SOLR_SERVER_PATH,
		'wt' => 'json' 

$client = new SolrClient ( $options );
$query = new SolrQuery ( "lucene" );

$response = $client->query ( $query );
var_dump($response->getResponse() instanceof SolrObject);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-06 17:51 UTC]
-Assigned To: +Assigned To: omars
 [2015-01-11 20:48 UTC]
-Status: Assigned +Status: Closed
 [2015-01-11 20:48 UTC]
Resolved on master/version 2.1.0
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Nov 29 00:03:13 2021 UTC