From 87f06d81878b604d671aaee783e61c166bdbfe83 Mon Sep 17 00:00:00 2001 From: Natalie Clarius Date: Thu, 21 Apr 2022 18:28:20 +0000 Subject: [PATCH] runners/baloo: Add missing category "text" to file search results The baloo runner plugin was missing the category "Text" in the matches, which caused many files to be inaccessible from KRunner even though they are indexed and relevant. This change fixes the missing results and correctly finds all relevant files. (cherry picked from commit bd397f89e14da4e8b4bd894a3218b02212c38408) --- runners/baloo/baloosearchrunner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/runners/baloo/baloosearchrunner.cpp b/runners/baloo/baloosearchrunner.cpp index 768709cee..25cf9500c 100644 --- a/runners/baloo/baloosearchrunner.cpp +++ b/runners/baloo/baloosearchrunner.cpp @@ -90,6 +90,7 @@ RemoteMatches SearchRunner::Match(const QString &searchTerm) matches << matchInternal(searchTerm, QStringLiteral("Folder"), i18n("Folder"), foundUrls); matches << matchInternal(searchTerm, QStringLiteral("Document"), i18n("Document"), foundUrls); matches << matchInternal(searchTerm, QStringLiteral("Archive"), i18n("Archive"), foundUrls); + matches << matchInternal(searchTerm, QStringLiteral("Text"), i18n("Text"), foundUrls); return matches; }