mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-23 22:37:09 +03:00
Added a comment to clarify purpose of notQuery
This commit is contained in:
parent
8f0fb1c299
commit
c5afea729f
@ -78,6 +78,7 @@ void ZealDocsetsRegistry::_runQuery(const QString& rawQuery, int queryNum)
|
||||
if(withSubStrings) {
|
||||
// if less than 100 found starting with query, search all substrings
|
||||
curQuery = "%"+preparedQuery;
|
||||
// don't return 'starting with' results twice
|
||||
if(types[name] == ZDASH) {
|
||||
notQuery = QString(" and not (ztokenname like '%1%' escape '\\' or ztokenname like '%.%1%' escape '\\') ").arg(preparedQuery);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user