Skip to content
Snippets Groups Projects
Commit 64182bbd authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Fix a problem fetching hierarchy from Solr when using a sharded index. (#980)

- Using max int as the rows parameter may cause an int overflow in Solr internal processing at least with a sharded index.
parent abb0d814
No related merge requests found
...@@ -111,11 +111,12 @@ class Solr extends AbstractBase ...@@ -111,11 +111,12 @@ class Solr extends AbstractBase
* Search Solr. * Search Solr.
* *
* @param string $q Search query * @param string $q Search query
* @param int $rows Max rows to retrieve (default = int max) * @param int $rows Max rows to retrieve (default = int max / 2 since Solr
* may choke with higher values)
* *
* @return array * @return array
*/ */
protected function searchSolr($q, $rows = 2147483647) protected function searchSolr($q, $rows = 1073741823)
{ {
$params = new ParamBag( $params = new ParamBag(
[ [
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment