mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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.
This commit is contained in:
parent
526b7144f7
commit
15d949b740
1 changed files with 4 additions and 4 deletions
8
query.cc
8
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) {
|
||||
|
|
Loading…
Reference in a new issue