Bug 424668

Summary: Advanced Search finds all cameras of a similar model depending on search order
Product: [Applications] digikam Reporter: TM <ukmew250>
Component: Searches-AdvancedAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.0.0   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In: 7.1.0
Sentry Crash Report:

Description TM 2020-07-25 23:03:29 UTC
SUMMARY
Using advanced search to find Canon EOS 5D images only:- all Canon EOS 5D mark2 or mark4 images are also displayed. If however the advanced search is used to find Canon EOS 5D mark2 or Canon EOS mark 4 images the results are correct

STEPS TO REPRODUCE
1. Any album
2. Advanced Search
3. Photographic Information
4. Make of camera = Canon
5. Model of the camera = EOS 5D

OBSERVED RESULT
Digicam displays all Canon 5D plus 5D mk2 and 5D mk4 images not a filtered display

EXPECTED RESULT
Should only display Canon EOS 5D images in my example


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.04
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Just checked 6.4.0 same incorrect result
Comment 1 Maik Qualmann 2020-07-26 05:45:54 UTC
This is actually intended, it is not an "exact" search in the database, but a "like" search.

Maik
Comment 2 Maik Qualmann 2020-07-26 07:03:59 UTC
Git commit 0f8ebdbfcf3d1c9fff6d96fcb21afa191c20b2f5 by Maik Qualmann.
Committed on 26/07/2020 at 07:01.
Pushed by mqualmann into branch 'master'.

use the full camera model name for the search
FIXED-IN: 7.1.0

M  +2    -21   NEWS
M  +12   -7    core/utilities/searchwindow/searchfields.cpp

https://invent.kde.org/graphics/digikam/commit/0f8ebdbfcf3d1c9fff6d96fcb21afa191c20b2f5