Bug 383961 - Searches don't show compressed files that Baloo has indexed and can find
Summary: Searches don't show compressed files that Baloo has indexed and can find
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: filesearch (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Pinak Ahuja
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2017-08-24 16:23 UTC by Alberto Salvia Novella
Modified: 2018-11-01 14:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Salvia Novella 2017-08-24 16:23:02 UTC
HOW TO REPRODUCE:
1. Press the super key.
2. Write a compressed file name.

RESULT:
- No compressed files are presented.
Comment 1 Nate Graham 2017-11-28 20:41:31 UTC
What is a compressed file name? Like file.zip?
Comment 2 Alberto Salvia Novella 2017-11-29 00:00:58 UTC
Exactly.
Comment 3 Nate Graham 2017-11-29 15:00:25 UTC
Confirming the issue
Comment 4 Stefan Brüns 2018-10-29 17:40:18 UTC
I can not reproduce this - please check if the file is in the index:

$> balooshow -x /path/to/file.zip
$> balooctl status /path/to/file.zip

If the file does not show up, please:
1. start "balooctl monitor"
2. in a different terminal, "touch" the file
Comment 5 Alberto Salvia Novella 2018-10-29 17:57:36 UTC
I cannot longer check myself. Nevertheless I will ask my distro if they are experiencing the bug themselves.
Comment 6 Alberto Salvia Novella 2018-10-29 17:59:48 UTC
https://forum.manjaro.org/t/could-you-confirm-this-kde-bug/63373
Comment 7 Alberto Salvia Novella 2018-10-29 21:51:15 UTC
Strit was unable to reproduce it too.
Comment 8 Nate Graham 2018-10-30 03:16:03 UTC
I see the issue now. The problem is not in Baloo but rather in the files runner:

$ balooshow -x ~/COS_-__the_Container_Ship.zip 
56879428722033410 66306 13243274 /home/nate/COS_-__the_Container_Ship.zip

Internal Info
Terms: Mapplication Mzip T1 
File Name Terms: Fcontainer Fcos Fship Fthe Fzip container cos ship the zip 
XAttr Terms: 

$ baloosearch Container_Ship.zip
/home/nate/COS_-__the_Container_Ship.zip
Elapsed: 2.08568 msecs


Search for "Container_Ship.zip" or "Container_Ship" or "Container" in KRunner or Kickoff/Kicker/Application dashboard: no results
Comment 9 Stefan Brüns 2018-10-30 03:32:15 UTC
(In reply to Nate Graham from comment #8)
> I see the issue now. The problem is not in Baloo but rather in the files
> runner:
> 
> $ balooshow -x ~/COS_-__the_Container_Ship.zip 
> 56879428722033410 66306 13243274 /home/nate/COS_-__the_Container_Ship.zip
> 
> Internal Info
> Terms: Mapplication Mzip T1 
> File Name Terms: Fcontainer Fcos Fship Fthe Fzip container cos ship the zip 
> XAttr Terms: 
> 
> $ baloosearch Container_Ship.zip
> /home/nate/COS_-__the_Container_Ship.zip
> Elapsed: 2.08568 msecs
> 
> 
> Search for "Container_Ship.zip" or "Container_Ship" or "Container" in
> KRunner or Kickoff/Kicker/Application dashboard: no results

Should be fixed since https://phabricator.kde.org/D10624 (5.12.2, 5.13.0)
Comment 10 Nate Graham 2018-10-31 23:06:27 UTC
(In reply to Stefan Brüns from comment #9)
> Should be fixed since https://phabricator.kde.org/D10624 (5.12.2, 5.13.0)
Than I guess that patch didn't work, since this is still broken for me on 5.12.7 and git master. Does it work for you? Can you find archives with KRunner that baloosearch sees? I can't.
Comment 11 Stefan Brüns 2018-10-31 23:17:44 UTC
Yes, works for me.

Also try "type:archive" as a search term. Gives a bunch of zip files for me.

Another possible check:
qdbus-qt5 --session org.kde.krunner /App org.kde.krunner.App.querySingleRunner baloosearch type:archive

Archives are "Type::Archive == 1", e.g. have a "T1" term from baloos point of view (as shown with "balooshow -x ...").

Note, I have plasma-workspace 5.14.2 here.
Comment 12 Alberto Salvia Novella 2018-11-01 10:28:57 UTC
I'm unsubscribing now, but feel free to resubscribe me if you needed my help.
Comment 13 Nate Graham 2018-11-01 14:38:44 UTC
I had to blow away my Baloo index, but now it works on both 5.12.7 and git master. Looks like that commit worked after all, and its prior non-reproducibility was an artifact of another issue.