Salīdzināt revīzijas
Nav kopīgu revīziju. Atzariem "e8b89b77ab498991900c0a353c4e137ddaa7415e" un "052f169ef2d41d61bfb32048c05328f3de9e0539" ir pilnībā atšķirīga izmaiņu vēsture.
e8b89b77ab
...
052f169ef2
@ -1,9 +1,4 @@
|
|||||||
# looqs: Release notes
|
# looqs: Release notes
|
||||||
## 2022-07-30 - v0.5.1
|
|
||||||
|
|
||||||
CHANGES:
|
|
||||||
- gui: Fix regression in implicit paths queries introduced in previous version
|
|
||||||
|
|
||||||
## 2022-07-29 - v0.5
|
## 2022-07-29 - v0.5
|
||||||
This release features multiple fixes and enhancements.
|
This release features multiple fixes and enhancements.
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ There is no need to write the long form of filters. There are also booleans avai
|
|||||||
The screenshots in this section may occasionally be slightly outdated, but they are usually recent enough to get an overall impression of the current state of the GUI.
|
The screenshots in this section may occasionally be slightly outdated, but they are usually recent enough to get an overall impression of the current state of the GUI.
|
||||||
|
|
||||||
## Current status
|
## Current status
|
||||||
Latest version: 2022-07-30, v0.5.1
|
Latest version: 2022-07-29, v0.5
|
||||||
|
|
||||||
Please see [Changelog](CHANGELOG.md) for a human readable list of changes.
|
Please see [Changelog](CHANGELOG.md) for a human readable list of changes.
|
||||||
|
|
||||||
|
@ -508,6 +508,7 @@ void MainWindow::lineEditReturnPressed()
|
|||||||
LooqsQuery pathsQuery = tmpQuery;
|
LooqsQuery pathsQuery = tmpQuery;
|
||||||
|
|
||||||
this->contentSearchQuery = tmpQuery;
|
this->contentSearchQuery = tmpQuery;
|
||||||
|
this->contentSearchQuery.setTokens({});
|
||||||
|
|
||||||
bool addContentSearch = false;
|
bool addContentSearch = false;
|
||||||
bool addPathSearch = false;
|
bool addPathSearch = false;
|
||||||
@ -525,15 +526,17 @@ void MainWindow::lineEditReturnPressed()
|
|||||||
return tokens;
|
return tokens;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* An explicit search, no lone words. We just pass it on */
|
/* An explicit search, we just pass it on */
|
||||||
if(!(tmpQuery.getTokensMask() & TokenType::WORD))
|
if(!(tmpQuery.getTokensMask() & TokenType::WORD))
|
||||||
{
|
{
|
||||||
if(tmpQuery.hasContentSearch())
|
if(tmpQuery.hasContentSearch())
|
||||||
{
|
{
|
||||||
|
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_CONTENT_CONTAINS));
|
||||||
addContentSearch = true;
|
addContentSearch = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_PATH_CONTAINS));
|
||||||
addPathSearch = true;
|
addPathSearch = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -548,7 +551,8 @@ void MainWindow::lineEditReturnPressed()
|
|||||||
/* A content search and lone words, e. g. c:("to be or not") ebooks */
|
/* A content search and lone words, e. g. c:("to be or not") ebooks */
|
||||||
else if(tmpQuery.hasContentSearch() && (tmpQuery.getTokensMask() & TokenType::WORD))
|
else if(tmpQuery.hasContentSearch() && (tmpQuery.getTokensMask() & TokenType::WORD))
|
||||||
{
|
{
|
||||||
this->contentSearchQuery = LooqsQuery::build(q, TokenType::FILTER_PATH_CONTAINS, false);
|
this->contentSearchQuery = tmpQuery;
|
||||||
|
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_PATH_CONTAINS));
|
||||||
addContentSearch = true;
|
addContentSearch = true;
|
||||||
addPathSearch = false;
|
addPathSearch = false;
|
||||||
}
|
}
|
||||||
@ -556,7 +560,7 @@ void MainWindow::lineEditReturnPressed()
|
|||||||
else if(!tmpQuery.hasPathSearch() && !tmpQuery.hasContentSearch())
|
else if(!tmpQuery.hasPathSearch() && !tmpQuery.hasContentSearch())
|
||||||
{
|
{
|
||||||
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_CONTENT_CONTAINS));
|
this->contentSearchQuery.setTokens(createFinalTokens(TokenType::FILTER_CONTENT_CONTAINS));
|
||||||
pathsQuery = LooqsQuery::build(q, TokenType::FILTER_PATH_CONTAINS, false);
|
pathsQuery.setTokens(createFinalTokens(TokenType::FILTER_PATH_CONTAINS));
|
||||||
addContentSearch = true;
|
addContentSearch = true;
|
||||||
addPathSearch = true;
|
addPathSearch = true;
|
||||||
}
|
}
|
||||||
@ -576,10 +580,6 @@ void MainWindow::lineEditReturnPressed()
|
|||||||
}
|
}
|
||||||
results.append(searcher.search(this->contentSearchQuery));
|
results.append(searcher.search(this->contentSearchQuery));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
this->contentSearchQuery.setTokens({});
|
|
||||||
}
|
|
||||||
return results;
|
return results;
|
||||||
});
|
});
|
||||||
searchWatcher.setFuture(searchFuture);
|
searchWatcher.setFuture(searchFuture);
|
||||||
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā
Block a user