summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Cache.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-05-05 19:36:41 +0200
committerRobin Appelman <robin@icewind.nl>2021-06-14 16:11:29 +0200
commit5d1d53c42e9a8342f9fd2da815e6653a64203c0c (patch)
treeab4821636cf77ef7d4cfa0cacaceff12d430692f /lib/private/Files/Cache/Cache.php
parent9774fb1573d30e79eb57f8956f64b13b52b7dee9 (diff)
downloadnextcloud-server-5d1d53c42e9a8342f9fd2da815e6653a64203c0c.tar.gz
nextcloud-server-5d1d53c42e9a8342f9fd2da815e6653a64203c0c.zip
perform file search in a single query
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/Cache.php')
-rw-r--r--lib/private/Files/Cache/Cache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php
index 592e71b2b70..c2f426acd2d 100644
--- a/lib/private/Files/Cache/Cache.php
+++ b/lib/private/Files/Cache/Cache.php
@@ -803,7 +803,7 @@ class Cache implements ICache {
}
public function searchQuery(ISearchQuery $searchQuery) {
- return $this->querySearchHelper->searchInCaches($searchQuery, [$this]);
+ return current($this->querySearchHelper->searchInCaches($searchQuery, [$this]));
}
/**