[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60410] [PATCH 5/7] messages: Offload limiting search results to xap
From: |
Arun Isaac |
Subject: |
[bug#60410] [PATCH 5/7] messages: Offload limiting search results to xapian. |
Date: |
Thu, 29 Dec 2022 20:23:58 +0000 |
* mumi/messages.scm (search-bugs): Offload limiting search results to
max to xapian.
---
mumi/messages.scm | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/mumi/messages.scm b/mumi/messages.scm
index 75ac3b1..b3ae962 100644
--- a/mumi/messages.scm
+++ b/mumi/messages.scm
@@ -252,10 +252,8 @@ PATCH-SET. If PATCH-SET is not provided, return all
patches."
(define* (search-bugs query #:key (max 400))
"Return a list of all bugs matching the given QUERY string."
- (let ((ids (map string->number
- (search query))))
- (status-with-cache (if (> (length ids) max)
- (take ids max) ids))))
+ (status-with-cache (map string->number
+ (search query #:pagesize max))))
(define (recent-bugs amount)
"Return up to AMOUNT bugs with most recent activity."
--
2.38.1
- [bug#60410] [PATCH 0/7] mumi: Boolean prefixes in xapian indexing and others, Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 1/7] xapian: Index several terms as boolean and without positions., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 4/7] messages: Remove unused set intersection feature in search-bugs., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 5/7] messages: Offload limiting search results to xapian.,
Arun Isaac <=
- [bug#60410] [PATCH 7/7] xapian: Preserve order of search results., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 3/7] xapian: Do not override the default OR implicit query operator., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 2/7] xapian: Declare some prefixes as boolean., Arun Isaac, 2022/12/29
- [bug#60410] [PATCH 6/7] cache: Specify that cache! returns the cached value., Arun Isaac, 2022/12/29