From 3cd6461d0383af1843ed841d434953d969f40f50 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 24 Sep 2026 16:33:28 +0100 Subject: 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. --- tests/smoketest.scm | 2 +- xapian/xapian.scm | 4 ++-- 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))) -- cgit 1.4.1