[Checkins] SVN: hurry.query/trunk/src/hurry/query/interfaces.py update searchResults interface

Jan-Wijbrand Kolman janwijbrand at gmail.com
Thu Jul 8 04:33:44 EDT 2010


Log message for revision 114321:
  update searchResults interface

Changed:
  U   hurry.query/trunk/src/hurry/query/interfaces.py

-=-
Modified: hurry.query/trunk/src/hurry/query/interfaces.py
===================================================================
--- hurry.query/trunk/src/hurry/query/interfaces.py	2010-07-08 08:26:20 UTC (rev 114320)
+++ hurry.query/trunk/src/hurry/query/interfaces.py	2010-07-08 08:33:43 UTC (rev 114321)
@@ -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.
+
         """



More information about the checkins mailing list