Add backwards compatibility and fix the search query for Solr 4 if rows param is 0.