Bug 471556 - Dolphin Search Does Not Properly Display Matching Results
Summary: Dolphin Search Does Not Properly Display Matching Results
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: search (show other bugs)
Version: 23.04.2
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-29 03:24 UTC by Abystus
Modified: 2025-01-23 11:58 UTC (History)
5 users (show)

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


Attachments
Example (183.17 KB, image/gif)
2023-06-29 03:24 UTC, Abystus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Abystus 2023-06-29 03:24:15 UTC
Created attachment 159967 [details]
Example

SUMMARY

When searching for files in folders within dolphin it is very hit or miss for a match when the text clearly contains the characters being searched for.


STEPS TO REPRODUCE
1. Create a new folder and name it whatever you want
2. Create a few new files in that directory with several different variations of the same name, and possibly contain other special characters like underscores or dashes
3. Type in the word or characters that you know are included in all the files and see which ones match
4. Remove a character at a time to see how the search varies (you should see several files you created during this exercise do not show up in the results)
5. (Bonus bug) If you take it one step further and clear the search and press enter it will then list the folder that contains the files in addition to the files as if they were all in the same directory and not directly within that folder (the folder should never appear in a search within itself)

OBSERVED RESULT

Several files do not show up when searching, different variations of file names seem to determine what shows in the search results regardless of if the file contains the character sequence.

EXPECTED RESULT

For it to show all matching criteria regardless of what the file is called as long as it includes the character sequence entered in the search.

SOFTWARE/OS VERSIONS

Dolphin: 23.04.2
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 5.19.0-45-generic (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600G with Radeon Graphics
Memory: 16.0 GiB of RAM
Graphics Processor: AMD Radeon RX 5500
Comment 1 Abystus 2023-07-21 04:09:06 UTC
Anyone had a chance to investigate this one yet?
Comment 2 Kurt 2023-08-12 18:12:45 UTC
Confirming.

Another example on one of my machines.  Search for ".iso" as though one wants to find .iso files for burning.  Dolphin's results do *not* exclude files with just "iso" in the file name.  

I would expect Dolphin's search to show *only* files with a ".iso" in the file name, so I can readily find the one I want to burn to a flash drive, or DVD.

SOFTWARE/OS VERSIONS

Dolphin:  22.12.3
(KDE Frameworks Version 5.103.0; Qt Version 5.15.8 (built against 5.15.8))

Operating System: Neptune 8.0
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-9-amd64 (64-bit)
Graphics Platform: X11
Comment 3 tagwerk19 2023-08-25 16:41:45 UTC
If you are using Neon, Dolphin is probably asking Baloo for search results. Have a look at Bug 463830 and:

    https://bugs.kde.org/show_bug.cgi?id=463830#c2

If you are typing a search phrase character by character, you will notice:

    In filename searches, you will get exact matches even if you type a single
    character, so searching for "1" will find a "file 1" but not "file 1a"

    Again in a filename search, if you don't find an exact match, you need to
    type two characters, so you need to type "fi" to find "file 1"

    In content searches, you need to type three characters to find matches
    within the content.

It can get a little tangled...
Comment 4 tagwerk19 2023-08-25 16:59:19 UTC
(In reply to Kurt from comment #2)
> ... Dolphin's results do *not* exclude files with just "iso" in the file name.  
Exclude? Include? I'm guessing you want "iso" files but not "isotopes.txt"

You can query Baloo for an exact match by:

    $ baloosearch filename=iso

or append a "$" to skip partial matches:

    $ baloosearch filename:iso$