From 5d1d53c42e9a8342f9fd2da815e6653a64203c0c Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 5 May 2021 19:36:41 +0200 Subject: perform file search in a single query Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Files/Cache/Cache.php') 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])); } /** -- cgit v1.2.3