From 6be89d119b594aee62adcc01a824eacdff33eb2b Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 6 May 2021 10:47:44 -0100 Subject: [PATCH] providerId displayed in title Signed-off-by: Maxence Lange --- lib/Search/UnifiedSearchProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Search/UnifiedSearchProvider.php b/lib/Search/UnifiedSearchProvider.php index 7a63c743..c2e908ef 100644 --- a/lib/Search/UnifiedSearchProvider.php +++ b/lib/Search/UnifiedSearchProvider.php @@ -184,11 +184,12 @@ private function convertSearchResult(array $searchResult): array { foreach ($searchResult as $ftsSearch) { foreach ($ftsSearch->getDocuments() as $document) { $excerpts = $document->getExcerpts(); + $title = '(' . $document->getProviderId() . ') '; if (empty($excerpts)) { - $title = $document->getTitle(); + $title .= $document->getTitle(); $subline = ''; } else { - $title = (sizeof($excerpts) > 0) ? $excerpts[0]['excerpt'] : ''; + $title .= (sizeof($excerpts) > 0) ? $excerpts[0]['excerpt'] : ''; $subline = $document->getTitle(); }