lehitoskin / ivy

Ivy, the Taggable Image Viewer
GNU General Public License v3.0
16 stars 3 forks source link

keep-duplicates gives false positives #44

Closed lehitoskin closed 8 years ago

lehitoskin commented 8 years ago

keep-duplicates will give false positives when tags that you do not want in an 'and search are contained within several (but not all) of the tags you have specified. This occurs when searching for images with 3 or more tags supplied.

ex: ivy -a "beach, ocean, ball" is expected to supply images where all three tags are contained within the image, but it also may supply images that have two of those tags, even though all three are required.

Possible solution: Instead of grabbing the images from all the tags at once and then running keep-duplicates, grab all the images from a single tag, then the next tag, run keep-duplicates, then grab the images from the next tag, etc.