Bug 446301

Summary: Ability to delete just content index data but preserve filename index data
Product: [Applications] systemsettings Reporter: saif1988
Component: kcm_balooAssignee: baloo-bugs-null
Status: CONFIRMED ---    
Severity: wishlist CC: nate, plasma-bugs-null, postix, tagwerk19
Priority: LO    
Version First Reported In: 5.23.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=489922
https://bugs.kde.org/show_bug.cgi?id=489919
https://bugs.kde.org/show_bug.cgi?id=446387
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description saif1988 2021-11-30 22:12:55 UTC
SUMMARY
By default, Baloo (File Search) in Plasma does index file contents. If user disables it, even after a restart, search will bring content based results.


STEPS TO REPRODUCE
1. Make sure to have file contents which the baloo indexes
2. Search for it and make sure results bring it (for example in the launcher)
3. Go to "File Search" > disable "Also index file content"

OBSERVED RESULT
Nothing will basically happen. Search will still bring that result of step 2. Rebooting the system also does nothing.
Only way of getting it work is manually purging the index with balooctl

EXPECTED RESULT
Disabling index file content should actually clear the existing indexation

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.5-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Comment 1 tagwerk19 2021-11-30 23:51:42 UTC
(In reply to saif1988 from comment #0)
> ... Search will still bring that result of step 2 ...
Yes. I think you'd need to disable File Search entirely, in which case you are prompted to deleted the indexed data, and then reenable it without content indexing.
Comment 2 tagwerk19 2021-12-02 07:21:15 UTC
Alternatively keep the full index, as the work is done.

However Dolphin and Krunner should limit themselves to a "filename:" search if there's a
    only basic indexing=true
in .config/baloofilerc

If people want to reclaim the disc space, they have the option to delete the index in System Settings when they disable indexing.