From 076c3c4c7f4f672593f1ae1a7173ab01a45fdeed Mon Sep 17 00:00:00 2001 From: Albert S Date: Thu, 28 Jul 2022 17:51:12 +0200 Subject: [PATCH] shared: LooqsQuery: Add implicit AND also for lone words --- shared/looqsquery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/looqsquery.cpp b/shared/looqsquery.cpp index 4eb7cec..c606b54 100644 --- a/shared/looqsquery.cpp +++ b/shared/looqsquery.cpp @@ -320,7 +320,7 @@ LooqsQuery LooqsQuery::build(QString expression, TokenType loneWordsTokenType, b QVector newTokens; TokenType prevType = BOOL_AND; - int needsBoolean = FILTER_CONTENT | FILTER_PATH | NEGATION; + int needsBoolean = FILTER_CONTENT | FILTER_PATH | NEGATION | WORD; for(Token &t : result.tokens) { if(t.type == BRACKET_OPEN || t.type & needsBoolean)