diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-24 22:20:13 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-24 22:20:13 -0700 |
commit | 15d949b7404b322df39e2aae7a5653e4cf8a8dc9 (patch) | |
tree | 63d48e88aea13d5734a908666fed23da83e03f65 | |
parent | 526b7144f7d692e04ce950dfa7d0ee1bdf792cdc (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.
-rw-r--r-- | query.cc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) { |