[dolphin] [Bug 480001] Add normal search as a fallback when searching in folder not indexed by baloo

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Thu Jan 18 18:37:35 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=480001

tagwerk19 at innerjoin.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tagwerk19 at innerjoin.org

--- Comment #1 from tagwerk19 at innerjoin.org ---
(In reply to Tom from comment #0)
> ... When search includes folders/files not indexed by baloo (For various reason:
> Not yet indexed, currently being indexed, excluded from indexing, etc),
> search these folders and files with the standard search ...
Searching with Dolphin is a labyrinth :-/

The "filenamesearch" and "baloosearch" backends don't pass queries back and
forth between them (Here the filenamesearch is the code that does the "there
and then" search, reading the data from the filesystem and giving you the
"hits. "Baloosearch" queries a database that's built in the background.)

Ideally "filenamesearch" ought to be able to ask what baloo has indexed and
query baloo for it (and therefore get results for these folders more quickly,
and better results as baloo extracts and indexes the text of the files)

It's interesting to consider your perspective that a baloo query should do a
"slow" search though the non-indexed folders.

There's a summary bug, listing the differences in behaviour between the two
sorts of search here: Bug 463830

> 1. I downloaded a new folder with a huge amount of pictures
> 2. I searched for the simple and obvious name of a picture ("rome")
> 3. The file I was expecting ("rome arrival.jpg") didn't show up
You don't say what distro you are using, it's possible it makes a difference
(particularly when dealing with loads of files)

You might find a "balooctl check" nudges Baloo to pick up the remaining files.

You are doing a search for a filename, that information ought to be indexed
*remarkably quickly*. It is the searching through the content, opening each
file, extracting the text that it would be useful to index, updating the
database, that takes the time. You can use "balooctl monitor" to watch the
stream of files being content indexed.

You might find that telling Baloo not to index content (just the filename and
xattr metadata) would be enough for you.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list