SUMMARY Searching by filename returns no results when initiated inside a symlinked directory but works properly when navigated to the original directory. STEPS TO REPRODUCE 1. Mount a partition to "/media" and navigate inside it 2. Create a folder like "/media/testing" 3. Navigate inside "/media/testing" 4. Create a file named "test-document.txt" 5. Navigate back to root partition "/home/$user" 6. Create a symlink to the testing folder "ln -s /media/testing testing-sym" 7. Navigate inside the "/home/$user/testing-sym" folder in Dolphin 8. Search by filename for "test-document", no results will appear 9. Navigate to "/media/testing" in Dolphin 10. Search for "test-document" and result will appear OBSERVED RESULT Search function will return no results when navigated inside the symlinked folder "/home/$user/testing-sym" but will return results when navigated directly to the linked folder "/media/testing" EXPECTED RESULT Search should return the test document in search results when Dolphin is navigated inside "/home/$user/testing-sym" SOFTWARE/OS VERSIONS Operation System: Arch Linux KDE Plasma Version: 5.19.4 KDE Frameworks Version: 5.73.0 Qt Version: 5.15.0
I can confirm this, but also the bug is still there even on the same partition. Searches from symlinks doesn't find any results. I would expect the search to return the same results as if it was searching from the link target.
Can confirm on Plasma 5.25.2 OS: ArcoLinux Kernel: 5.18.9-arch-1 KDE Frameworks Version: 5.95.0 Qt Version: 5.15.5
Apparently, this is because files are being indexed according to their real location only, so no duplicate entries are being created to include the same files also with their symlinked path. I guess a solution for this longstanding problem could be; letting Dolphin open a symlinked directory using its real path instead of the current "virtual" path, which creates this frustrating search problem.
Created attachment 153899 [details] a possible Dolphin settings navigation option for symlinked folders It seems we need an additional option in Dolphin Settings > Configure Dolphin > Navigation, like this.