In my limited testing, this seems to work to support e.g.
'*tir*' matching retiring. There also seems to be support for prefixed
wildcards in the updated query parser.
Before this is ready to apply, this will require updated configure,
documentation and tests, and probably some updates to the sexp query
parser.
Running Debian, you will need to install libxapian-dev from
experimental. Otherwise you can find the source at
https://oligarchy.co.uk/xapian/1.5.1/
---
lib/database-private.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/database-private.h b/lib/database-private.h
index 2959b3ac..014941a0 100644
--- a/lib/database-private.h
+++ b/lib/database-private.h
@@ -189,7 +189,7 @@ operator& (notmuch_field_flag_t a, notmuch_field_flag_t b)
Xapian::QueryParser::FLAG_PHRASE | \
Xapian::QueryParser::FLAG_LOVEHATE | \
Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE
| \
- Xapian::QueryParser::FLAG_WILDCARD | \
+ Xapian::QueryParser::FLAG_WILDCARD_MULTI | \
Xapian::QueryParser::FLAG_PURE_NOT)
/*
--
2.51.0
_______________________________________________
notmuch mailing list -- [email protected]
To unsubscribe send an email to [email protected]