Bug 432494 - Advanced search album does not search subfolders nothing
Summary: Advanced search album does not search subfolders nothing
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (show other bugs)
Version: 7.2.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-04 05:52 UTC by Joseph Chang
Modified: 2021-02-06 12:47 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Chang 2021-02-04 05:52:10 UTC
SUMMARY
When trying to search a filename using advanced search, digikam only returns the results if exact folder is selected. If the parent folder is selected, digikam return nothing.

STEPS TO REPRODUCE
1. Album structure:
   2020/01/test1.jpg
       /02/test2.jpg
2. In advanced search: album: 2020-->01, search field: test1.jpg --> return the file
3. In advanced search: album field: 2020, search field: test1.jpg --> return nothing.


OBSERVED RESULT


EXPECTED RESULT
I would expect we can select a folder in ablum field, digikam will search all subfolders.

SOFTWARE/OS VERSIONS
Windows: 
macOS: Big Sur 11.2
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-02-04 06:58:33 UTC
This behavior is so intended. Only the selected albums are searched. You can right-click the parent album and choose to select automatically also the child albums as well.

Maik
Comment 2 Joseph Chang 2021-02-06 02:07:34 UTC
Thanks for the information. 

It just seems natural to me if a folder is selected, all the subfolders are also searched. Otherwise, I can just select the subfolder itself, not the parent folder. 

The only situation I can think of to exclude the subfolders is if the parent folder also contain photos, then it makes sense to select the folder but excludes the subfolders.

Thanks,
Joseph
Comment 3 Maik Qualmann 2021-02-06 12:47:12 UTC
The behavior is the same in all album selectors in digiKam. Surely we could reverse the behavior and one would have to deselect children's albums. But long-time digiKam users know the behavior no different.

Maik