From 15d949b7404b322df39e2aae7a5653e4cf8a8dc9 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 24 Oct 2009 22:20:13 -0700 Subject: [PATCH] Fix bit-twiddling brain damage in notmuch_query_search Here's the big bug that was preventing any searches from working at all like desired. I did the work to carefully pick out exactly the flags that I wanted, and then I threw it away by trying to combine them with & instead of | (so just passing 0 for flags instead). Much better now. --- query.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/query.cc b/query.cc index f66ee556..57501675 100644 --- a/query.cc +++ b/query.cc @@ -95,10 +95,10 @@ notmuch_query_search (notmuch_query_t *query) Xapian::Query mail_query ("Kmail"); Xapian::Query string_query, final_query; Xapian::MSet mset; - unsigned int flags = (Xapian::QueryParser::FLAG_BOOLEAN & - Xapian::QueryParser::FLAG_PHRASE & - Xapian::QueryParser::FLAG_LOVEHATE & - Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE & + unsigned int flags = (Xapian::QueryParser::FLAG_BOOLEAN | + Xapian::QueryParser::FLAG_PHRASE | + Xapian::QueryParser::FLAG_LOVEHATE | + Xapian::QueryParser::FLAG_BOOLEAN_ANY_CASE | Xapian::QueryParser::FLAG_WILDCARD); if (strcmp (query_string, "") == 0) { -- 2.43.0