Bug 385438 - Search images with 2 tags should give images with the 2 tags, not all images with one of the two tags
Summary: Search images with 2 tags should give images with the 2 tags, not all images ...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (other bugs)
Version First Reported In: 5.7.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-06 13:16 UTC by philippe.quaglia
Modified: 2017-12-08 18:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.8.0
Sentry Crash Report:


Attachments
Screen capture. I have selected (upper left of the search window) «all the conditions» and them I have selected the 2 tags I want. (196.23 KB, image/jpeg)
2017-10-06 13:16 UTC, philippe.quaglia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description philippe.quaglia 2017-10-06 13:16:07 UTC
Created attachment 108206 [details]
Screen capture. I have selected (upper left of the search window) «all the conditions» and them I have selected the 2 tags I want.

I use the advanced search tool to find all the images with at least 2 tags I'm looking for (panorama and house). I expect to get all the images with these 2 tags, but instead I get all the images with panorama tag and all the images with house tag. It looks like I'm getting an «OR» condition instead of an «AND» condition.
Comment 1 Maik Qualmann 2017-10-07 06:50:31 UTC
I can not reproduce the problem, I get only the images in which both tags occur (selected "In ALL") Which database do you use? MySQL or SQlite?

Maik
Comment 2 philippe.quaglia 2017-10-07 17:00:29 UTC
Hello Maik, I guess it is SQLITE. Here are the components of my installation: 

digikam version 5.7.0
CPU cores: 4
Eigen: 3.2.5
Exiv2: 0.26
Exiv2 can write to Jp2: Oui
Exiv2 can write to Jpeg: Oui
Exiv2 can write to Pgf: Oui
Exiv2 can write to Png: Oui
Exiv2 can write to Tiff: Oui
Exiv2 supports XMP metadata: Oui
KF5: 5.36.0
LensFun: 0.3.2-0
LibCImg: 130
LibJPEG: 80
LibJasper: 1.900.29
LibLCMS: 2080
LibLqr support: Non
LibPGF: 7.15.32
LibPNG: 1.6.26
LibRaw: 0.18.2
LibTIFF: 4.0.6
Marble: 0.27.1
Parallelized demosaicing: Oui
Qt: 5.9.1
Gestion du lecteur de média: Oui
LibGphoto2: 2.5.14
LibKipi: 5.2.0
LibOpenCV: 3.2.0
LibQtAV: 1.12.0
Modules externes KIPI: 5.6.0
Moteur de base de données: QSQLITE
Prise en charge de AkonadiContact: non
Prise en charge de Baloo: non
Prise en charge de DBus: Oui
Prise en charge de la galerie HTML: oui
Prise en charge du Calendrier: non
Prise en charge du Panorama: oui
Comment 3 philippe.quaglia 2017-12-08 17:07:13 UTC
Hello, tried it again today, and works fine. Maybe did I made a wrong manipulation, sorry. I think this may be closed.
Comment 4 Maik Qualmann 2017-12-08 18:27:56 UTC
Thanks for the feedback.

Maik