shared: LooqsQuery: Add implicit AND also for lone words
Αυτή η υποβολή περιλαμβάνεται σε:
γονέας
c11fd1a9ff
υποβολή
076c3c4c7f
@ -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)
|
||||
|
Φόρτωση…
Αναφορά σε νέο ζήτημα
Block a user