Bug 153208 - Option to search for empty/not empty or regular expressions for text fields in advanced search
Summary: Option to search for empty/not empty or regular expressions for text fields i...
Status: RESOLVED DUPLICATE of bug 297296
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (show other bugs)
Version: 0.9.2
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-01 05:58 UTC by Bernardo Rechea
Modified: 2017-08-18 06:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernardo Rechea 2007-12-01 05:58:36 UTC
Version:           0.9.2 (using KDE KDE 3.5.5)
Installed from:    SuSE RPMs
OS:                Linux

The advanced search allows the logical operators "contains", "does not contain", "equals" and "does not equal" for textual items like image title, image caption, etc. This is a request to add a couple of logical operators: "is empty" and "is not empty". And it would be even better to allow for regular expressions, in which case the two proposed operators would simply be special cases that could be written "^$" and "^.+$" (using Perl's regex flavor, for the sake of discussion).

Here is a practical application. Recently, I wanted to create a search for all recent JPGs that had a rating of 2 or greater and for which I hadn't yet provided a comment. I can do the first three things, but not the fourth:

  Rating     | at least | **
    As well as
  Image name | contains | .jpg
    As well as
  Image date | After    | 2007-10-08

I tried to select photos that had no caption with

  Image Caption | contains | ''
and
  Image Caption | contains | ""
and
  Image Caption | contains |   (that's a blank field)

but none worked.

Thanks for such a wonderful application as digiKam! I can't imagine how I would handle the billions of photographs I take without it.
Comment 1 caulier.gilles 2014-08-31 09:08:08 UTC
Bernardo,

This file still valid using last digiKam 4.2.0 

Gilles Caulier
Comment 2 caulier.gilles 2015-05-16 13:48:37 UTC

*** This bug has been marked as a duplicate of bug 297296 ***