Permalink
Browse files

Removed default values for start and rows from the search method. Tha…

…nks, jarek.zgoda.

This will allow people to let solr determine what the default for those should be.


git-svn-id: https://pysolr.googlecode.com/svn/trunk@11 13ae9d4a-4d43-0410-997b-81b7443f7ec1
  • Loading branch information...
1 parent 8d5b325 commit 41f2c79f2a74a2c16a7593d48e7b7ec93e72f1ac @jkocherhans committed Mar 14, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 pysolr.py
View
@@ -229,9 +229,13 @@ def double_to_python(self, value):
# API Methods ############################################################
- def search(self, q, sort=None, start=0, rows=20):
+ def search(self, q, sort=None, start=None, rows=None):
"""Performs a search and returns the results."""
- params = {'q': q, 'start': start, 'rows': rows}
+ params = {'q': q}
+ if start:
+ params['start'] = start
+ if rows:
+ params['rows'] = rows
if sort:
params['sort'] = sort
response = self._select(params)

0 comments on commit 41f2c79

Please sign in to comment.