aboutsummaryrefslogtreecommitdiff
path: root/query.cc
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-24 22:20:13 -0700
committerCarl Worth <cworth@cworth.org>2009-10-24 22:20:13 -0700
commit15d949b7404b322df39e2aae7a5653e4cf8a8dc9 (patch)
tree63d48e88aea13d5734a908666fed23da83e03f65 /query.cc
parent526b7144f7d692e04ce950dfa7d0ee1bdf792cdc (diff)
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.
Diffstat (limited to 'query.cc')
-rw-r--r--query.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/query.cc b/query.cc
index f66ee55..5750167 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) {