Skip to content

Commit

Permalink
update searchResults interface
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Jul 8, 2010
1 parent c6b3736 commit 059ae8b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/hurry/query/interfaces.py
Expand Up @@ -20,8 +20,22 @@

class IQuery(Interface):

def searchResults(query):
def searchResults(
query, context=None, sort_field=None, limit=None, reverse=False):

"""Query indexes.
Argument is a query composed of terms.
The query argument is a query composed of terms. Optionally provide
the `context` parameter for the component lookups.
Optionally provide a `sort_field` tuple that determines the index used
to sort the result set with. This index is required to provide
IIndexSort.
Optionally provide a `limit` parameter to limit the result set to the
given size.
Optionally provide a `reverse` parameter to reverse the order of the
result set.
"""

0 comments on commit 059ae8b

Please sign in to comment.