I've just installed Kubuntu and the new Plasma 5.3; baloo is working great, but it does not seem to index text files such as, e.g., *.java. They are not excluded in the baloofilerc, and before Plasma 5.2 Java files were correctly indexed. I think there should be an option to specify which kinds of mime types are indexed; something similar was available in nepomuk if I remember correctly. Reproducible: Always Steps to Reproduce: 1. create a Java file, Example.java, with some contents 2. save it 3. baloo does not index it
It seems by default we do not index code files which includes java/c++/others. We're planning on bringing back the mimetype configuration options as well as others under an "Advanced" section for Plasma 5.4. Till then you can manually edit the config file - https://community.kde.org/Baloo/Configuration *** This bug has been marked as a duplicate of bug 337583 ***
(In reply to Vishesh Handa from comment #1) > It seems by default we do not index code files which includes > java/c++/others. > > We're planning on bringing back the mimetype configuration options as well > as others under an "Advanced" section for Plasma 5.4. Till then you can > manually edit the config file - https://community.kde.org/Baloo/Configuration I don't see any part in the documentation to explicitly enable mime types: only to exclude mime types... am I missing something?
(In reply to Lorenzo Bettini from comment #2) > (In reply to Vishesh Handa from comment #1) > > It seems by default we do not index code files which includes > > java/c++/others. > > > > We're planning on bringing back the mimetype configuration options as well > > as others under an "Advanced" section for Plasma 5.4. Till then you can > > manually edit the config file - https://community.kde.org/Baloo/Configuration > > I don't see any part in the documentation to explicitly enable mime types: > only to exclude mime types... am I missing something? If you set it to a blank field, it should include everything (not tested). PS: If the automatic updating feature of baloo doesn't work you can always recreate your db from scratch via `$ balooclt disable` and `$ balooctl enable`
(In reply to Vishesh Handa from comment #3) > (In reply to Lorenzo Bettini from comment #2) > > (In reply to Vishesh Handa from comment #1) > > > It seems by default we do not index code files which includes > > > java/c++/others. > > > > > > We're planning on bringing back the mimetype configuration options as well > > > as others under an "Advanced" section for Plasma 5.4. Till then you can > > > manually edit the config file - https://community.kde.org/Baloo/Configuration > > > > I don't see any part in the documentation to explicitly enable mime types: > > only to exclude mime types... am I missing something? > > If you set it to a blank field, it should include everything (not tested). > > PS: If the automatic updating feature of baloo doesn't work you can always > recreate your db from scratch via `$ balooclt disable` and `$ balooctl > enable` I set it to a blank field (though I had no mime exclusions before, anyway); I haven't regenerated the db from scratch, but I was running baloo from the command line so I can see the output: I created a java file with some contents, but neither the name of the file, nor its contents are shown if I search for them in KRunner... so I guess this workaround does not work... you may want to try it yourself, in case I missed something.
I just tried it out and it worked for me. $ balooctl stop $ balooctl disable [Basic Settings] Indexing-Enabled=true [General] exclude filters= exclude filters version=2 exclude mimetypes= first run=false folders[$e]=/run/media/vishesh/USB DISK/,$HOME/ $ balooctl enable ----
But that requires to set also exclude filters to an empty string, is that right? That is not an option for me at the moment :)