Skip to content

Commit c75a18a

Browse files
authored
Merge pull request #40446 from nextcloud/backport/40418/stable25
[stable25] fix: don't use davtags for tag search
2 parents 163ace2 + 27dc783 commit c75a18a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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)