about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2026-09-24 16:33:28 +0100
committerArun Isaac2026-09-24 16:33:28 +0100
commit3cd6461d0383af1843ed841d434953d969f40f50 (patch)
tree23d42a520a7e1888de778b1449bceea52c2a064e
parentdeb078b6c92c3352611f85cc0875f91a91dae56c (diff)
downloadguile-xapian-3cd6461d0383af1843ed841d434953d969f40f50.tar.gz
guile-xapian-3cd6461d0383af1843ed841d434953d969f40f50.tar.lz
guile-xapian-3cd6461d0383af1843ed841d434953d969f40f50.zip
Rename query-terms to query-termlist.
This makes it clearer that this is really a C++ iterator we are
dealing with, and is more in line with how we name
other *-termlist, *-positionlist, etc. functions.
-rw-r--r--tests/smoketest.scm2
-rw-r--r--xapian/xapian.scm4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/smoketest.scm b/tests/smoketest.scm
index 7780db0..1e4f37e 100644
--- a/tests/smoketest.scm
+++ b/tests/smoketest.scm
@@ -124,7 +124,7 @@ after."
     4
     (termlist-fold fold-count
                    0
-                   (query-terms query2))))
+                   (query-termlist query2))))
 
 ;; TODO: Check error reporting of database opening functions as in
 ;; smoketest.py.
diff --git a/xapian/xapian.scm b/xapian/xapian.scm
index b104cfd..c744101 100644
--- a/xapian/xapian.scm
+++ b/xapian/xapian.scm
@@ -58,7 +58,7 @@
             query-xor
             query-filter
             query-phrase
-            query-terms
+            query-termlist
             prefixed-range-processor
             suffixed-range-processor
             prefixed-date-range-processor
@@ -358,7 +358,7 @@ In a weighted context, the weight is the sum of the weights for all
 queries."
   (guile-xapian-build-query (Query-OP-PHRASE) queries))
 
-(define (query-terms query)
+(define (query-termlist query)
   (iterable (Query-get-terms-begin query)
             (Query-get-terms-end query)))