Replacing sys.maxint with 2**31-1 since sys.maxint can be too large for Solr's rows parameter.