aboutsummaryrefslogtreecommitdiff
path: root/xapian/xapian.scm
diff options
context:
space:
mode:
Diffstat (limited to 'xapian/xapian.scm')
-rw-r--r--xapian/xapian.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/xapian/xapian.scm b/xapian/xapian.scm
index 181a3e8..2ddc8b4 100644
--- a/xapian/xapian.scm
+++ b/xapian/xapian.scm
@@ -110,7 +110,17 @@
(Enquire-set-weighting-scheme enquire weighting-scheme))
enquire))
-(define enquire-mset Enquire-get-mset)
+(define* (enquire-mset enquire #:key (offset 0) maximum-items)
+ "Run a query using the settings in the ENQUIRE object and return an
+mset object.
+
+OFFSET specifies the number of items to ignore at the beginning of the
+result set.
+
+MAXIMUM-ITEMS specifies the maximum number of items to return. To
+return all matches, pass the result of calling database-document-count
+on the database object."
+ (Enquire-get-mset enquire offset maximum-items))
(define mset-item-docid MSetIterator-get-docid)
(define mset-item-document MSetIterator-get-document)