* mu-query-xapian: fix silly typo (s/ANO/AND/) that screwed up some searches

This commit is contained in:
Dirk-Jan C. Binnema
2010-01-31 14:17:23 +02:00
parent e017e658de
commit 3c74b9aa6e

View File

@ -105,6 +105,8 @@ get_query (MuQueryXapian * mqx, const char* searchexpr, int *err = 0) {
if (err)
*err = 1;
return Xapian::Query();
}
@ -218,9 +220,7 @@ static gboolean
needs_quotes (const char* str)
{
int i;
const char *keywords[] = {
"ANO", "OR", "NOT", "NEAR", "ADJ"
};
const char *keywords[] = { "AND", "OR", "NOT", "NEAR", "ADJ" };
for (i = 0; i != G_N_ELEMENTS(keywords); ++i)
if (g_strcasecmp (str, keywords[i]) == 0)