[digiKam-users] Exclude tags in search

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[digiKam-users] Exclude tags in search

ssm2017
hello
using digikam 7.1
i have images with tags :
image1 tag a
image 2 tag b
image 3 tag a b
image 4 tag a b c
image 5 tag b c
i would like to get all the images containing the tag a and b but without c
the result would be :
image 1
image 2
image 3
is there a way to achieve this using the search engine ?
Reply | Threaded
Open this post in threaded view
|

Re: Exclude tags in search

Remco Viëtor
On jeudi 24 septembre 2020 13:11:46 CEST ssm2017 wrote:

> hello
> using digikam 7.1
> i have images with tags :
> image1 tag a
> image 2 tag b
> image 3 tag a b
> image 4 tag a b c
> image 5 tag b c
> i would like to get all the images containing the tag a and b but without c
> the result would be :
> image 1
> image 2
> image 3
> is there a way to achieve this using the search engine ?

if you indeed want as output the images 1, 2, and 3 only,
you need a search for (a OR b) AND (NOT c).

Using the advanced search, that's easy enough:
first search group:
make sure that in the 'options' (toggle at top right) you select 'Meet Any of
the folllowing conditions),
and select the tags 'a' and 'b' in '*tags* return items with tag'

Add a search group,
there, in the options field, select 'none of these conditions are met',
and under '*tags* select tag c,
combine the two with 'AND' (if necessary, click on the "OR" in the group title
bar)

Remco


Reply | Threaded
Open this post in threaded view
|

Re: Exclude tags in search

ssm2017
Hello
Thank you for your answer.
It is working now

On Thu, Sep 24, 2020, 13:41 Remco Viëtor <[hidden email]> wrote:
On jeudi 24 septembre 2020 13:11:46 CEST ssm2017 wrote:
> hello
> using digikam 7.1
> i have images with tags :
> image1 tag a
> image 2 tag b
> image 3 tag a b
> image 4 tag a b c
> image 5 tag b c
> i would like to get all the images containing the tag a and b but without c
> the result would be :
> image 1
> image 2
> image 3
> is there a way to achieve this using the search engine ?

if you indeed want as output the images 1, 2, and 3 only,
you need a search for (a OR b) AND (NOT c).

Using the advanced search, that's easy enough:
first search group:
make sure that in the 'options' (toggle at top right) you select 'Meet Any of
the folllowing conditions),
and select the tags 'a' and 'b' in '*tags* return items with tag'

Add a search group,
there, in the options field, select 'none of these conditions are met',
and under '*tags* select tag c,
combine the two with 'AND' (if necessary, click on the "OR" in the group title
bar)

Remco