aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2024-05-03 22:55:19 +0100
committerArun Isaac2024-05-04 00:07:13 +0100
commit5763f0c9a713c8627a8e9b801a3cfd24b68ab171 (patch)
treef619cd4b071b8153414bbdcf6acfcc872a7d3380
parentec7e7a9eabe210e1a75eeeb68f45dc1d6e5a7731 (diff)
downloadguile-xapian-5763f0c9a713c8627a8e9b801a3cfd24b68ab171.tar.gz
guile-xapian-5763f0c9a713c8627a8e9b801a3cfd24b68ab171.tar.lz
guile-xapian-5763f0c9a713c8627a8e9b801a3cfd24b68ab171.zip
xapian: Wrap new-Query.
* xapian/xapian.scm (query): New public function.
-rw-r--r--xapian/xapian.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/xapian/xapian.scm b/xapian/xapian.scm
index 8b8b952..9ca5df6 100644
--- a/xapian/xapian.scm
+++ b/xapian/xapian.scm
@@ -50,6 +50,7 @@
index-text!
increase-termpos!
parse-query
+ query
query-and
query-or
query-filter
@@ -207,6 +208,10 @@ on the database object."
(MSetIterator-next head)
(loop head result))))))
+(define (query term)
+ "Return a @code{Query} object for @var{term}."
+ (new-Query term))
+
(define (query-combine combine-operator default . queries)
(reduce (cut new-Query combine-operator <> <>)
default