summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-09-14 12:31:33 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-09-15 17:36:38 +0000
commit562c47223af09fb960b01550ede3fbc38b1f0081 (patch)
treea9c867f467e0d426c5fc651821e14fb0bd8ba649
parent4ff639eb51629cded66eeef2f4cf56a4c4a81984 (diff)
downloadnextcloud-server-562c47223af09fb960b01550ede3fbc38b1f0081.tar.gz
nextcloud-server-562c47223af09fb960b01550ede3fbc38b1f0081.zip
fix: don't use davtags for tag search
1. https://github.com/nextcloud/server/pull/26813 Initial implementation with support for systemtags and davtags (vcategory) 2. https://github.com/nextcloud/server/pull/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 <mail@danielkesselberg.de>
-rw-r--r--apps/systemtags/lib/Search/TagSearchProvider.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/systemtags/lib/Search/TagSearchProvider.php b/apps/systemtags/lib/Search/TagSearchProvider.php
index 5c731e42cc3..2ff5cc984ab 100644
--- a/apps/systemtags/lib/Search/TagSearchProvider.php
+++ b/apps/systemtags/lib/Search/TagSearchProvider.php
@@ -120,10 +120,7 @@ class TagSearchProvider implements IProvider {
$userFolder = $this->rootFolder->getUserFolder($user->getUID());
$fileQuery = new SearchQuery(
- new SearchBinaryOperator(SearchBinaryOperator::OPERATOR_OR, [
- new SearchComparison(ISearchComparison::COMPARE_LIKE, 'tagname', '%' . $query->getTerm() . '%'),
- new SearchComparison(ISearchComparison::COMPARE_LIKE, 'systemtag', '%' . $query->getTerm() . '%'),
- ]),
+ new SearchComparison(ISearchComparison::COMPARE_LIKE, 'systemtag', '%' . $query->getTerm() . '%'),
$query->getLimit(),
(int)$query->getCursor(),
$query->getSortOrder() === ISearchQuery::SORT_DATE_DESC ? [