Skip to content

Commit cc047d8

Browse files
kesselbbackportbot-nextcloud[bot]
authored andcommitted
fix: don't use davtags for tag search
1. #26813 Initial implementation with support for systemtags and davtags (vcategory) 2. #39062 Additional check if the given tag exists, though ISystemTagManager.getAllTags only looks for systemtags Therefore it's not possible anymore to search for davtags and unnecessary to join the other tables. Signed-off-by: Daniel Kesselberg <[email protected]>
1 parent f077b26 commit cc047d8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/systemtags/lib/Search/TagSearchProvider.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,7 @@ public function search(IUser $user, ISearchQuery $query): SearchResult {
120120

121121
$userFolder = $this->rootFolder->getUserFolder($user->getUID());
122122
$fileQuery = new SearchQuery(
123-
new SearchBinaryOperator(SearchBinaryOperator::OPERATOR_OR, [
124-
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'tagname', '%' . $query->getTerm() . '%'),
125-
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'systemtag', '%' . $query->getTerm() . '%'),
126-
]),
123+
new SearchComparison(ISearchComparison::COMPARE_LIKE, 'systemtag', '%' . $query->getTerm() . '%'),
127124
$query->getLimit(),
128125
(int)$query->getCursor(),
129126
$query->getSortOrder() === ISearchQuery::SORT_DATE_DESC ? [

0 commit comments

Comments
 (0)