shared: LooqsQuery: Add implicit AND also for lone words

Šī revīzija ir iekļauta:
Albert S. 2022-07-28 17:51:12 +02:00
vecāks c11fd1a9ff
revīzija 076c3c4c7f

Parādīt failu

@ -320,7 +320,7 @@ LooqsQuery LooqsQuery::build(QString expression, TokenType loneWordsTokenType, b
QVector<Token> 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)