From a2db057350751f42d80eb0a93ae29ad550b1f7d0 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sun, 10 May 2020 08:30:09 +0200 Subject: xapian: Allow boolean search without capitalization, allow wildcards. --- mumi/xapian.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mumi/xapian.scm b/mumi/xapian.scm index cc5997d..2723615 100644 --- a/mumi/xapian.scm +++ b/mumi/xapian.scm @@ -201,7 +201,12 @@ messages and index their contents in the Xapian database at DBPATH." prefixes) (QueryParser-add-rangeprocessor queryparser date-range-processor) (QueryParser-add-rangeprocessor queryparser mdate-range-processor) - (let ((query (QueryParser-parse-query queryparser querystring))) + (let ((query (QueryParser-parse-query queryparser querystring + (logior (QueryParser-FLAG-BOOLEAN) + (QueryParser-FLAG-PHRASE) + (QueryParser-FLAG-LOVEHATE) + (QueryParser-FLAG-BOOLEAN-ANY-CASE) + (QueryParser-FLAG-WILDCARD))))) (delete-QueryParser queryparser) query))) -- cgit v1.2.3