Skip to content

Commit

Permalink
Fixed: Django-sphinx returns not more than 20 resuts (dcramer#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
adw0rd committed Jun 22, 2012
1 parent 8c21ca0 commit 40334c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ The following is some example usage::
},
mode='SPH_MATCH_ALL',
rankmode='SPH_RANK_NONE',
limit=100
)

queryset = MyModel.search.query('query')
Expand Down Expand Up @@ -177,4 +178,4 @@ Resources
---------

* http://groups.google.com/group/django-sphinx
* http://www.davidcramer.net/code/65/setting-up-django-with-sphinx.html
* http://www.davidcramer.net/code/65/setting-up-django-with-sphinx.html
2 changes: 1 addition & 1 deletion djangosphinx/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def to_sphinx(value):
return int(value)

class SphinxQuerySet(object):
available_kwargs = ('rankmode', 'mode', 'weights', 'maxmatches', 'passages', 'passages_opts')
available_kwargs = ('rankmode', 'mode', 'weights', 'maxmatches', 'passages', 'passages_opts', 'limit')

def __init__(self, model=None, using=None, **kwargs):
self._select_related = False
Expand Down

0 comments on commit 40334c3

Please sign in to comment.