Bug 468256

Summary: inconsistent search results for newer files in Dolphin: OK from "My files", empty from specific folder
Product: [Applications] dolphin Reporter: brazzmonkey <brazzmonkey>
Component: searchAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, tagwerk19
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description brazzmonkey 2023-04-07 16:53:43 UTC
SUMMARY
Search features in Dolphin is inconsistent.
When new files are added into new folders, the do not appear in Dolphin search results from these newer folders ("from here").

STEPS TO REPRODUCE
1. in Dolphin, create new folders, subfolders
2. in Dolphin, put new files in these newly created folders (JPG files for instance)
3. in Dolphin, launch search box using 'Ctrl+F', search location "from here" for files named '*.jpg' 

OBSERVED RESULT
No files matching search criteria found.

EXPECTED RESULT
Files matching search criteria listed as results.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04, KDE Plasma 5.25.5
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
- Baloo indexing seems to be working fine, as 'balooctl monitor' detects new files and indexes them.

- When "your files" is selected as a search location instead of "from here", the newest files do appear in search results as expected (but among the many other files from other folders complying to search criteria...).

- When the same search is done later (I'm talking several hours at least, maybe days), search results are consistent even using "from here" location.