|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-26 03:26 UTC] omars@php.net
[2015-09-28 18:00 UTC] omars@php.net
-Status: Open
+Status: Feedback
[2015-09-28 18:00 UTC] omars@php.net
[2015-10-11 04:22 UTC] pecl-dev at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Description: ------------ Hi there, there seems to be a bug when using SolrQuery::setGroupLimit(). Under certain circumstances, SolrClient exits with "Solr HTTP Error 56: 'Failure when receiving data from the peer'" This normally happens, if I reuse a SolrClient-Connection and additionally the returned resultset is smaller than requested by setGroupLimit. If I omit the "setGroupLimit"-call or if I reinstantiate a new connection no error is shown. Test script: --------------- $db = new \SolrClient(['host' => 'localhost', 'path' => 'solr/test']); $query = new \SolrQuery(); $query->setGroup(true); $query->addGroupField('testfield_with_many_rs'); $query->setGroupLimit(2); $db->query($query); // works $query = new \SolrQuery(); $query->setGroup(true); $query->addGroupField('testfield_with_one_rs'); $query->setGroupLimit(2); $db->query($query); // throws Exception Actual result: -------------- Solr HTTP Error 56: 'Failure when receiving data from the peer'