Bug 467715 - No option for searching for empty/zero length location fields
Summary: No option for searching for empty/zero length location fields
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (other bugs)
Version First Reported In: 8.0.0
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-23 12:29 UTC by José Oliver-Didier
Modified: 2026-01-31 19:58 UTC (History)
1 user (show)

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


Attachments
Geographic position section (15.43 KB, image/png)
2023-03-23 12:29 UTC, José Oliver-Didier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description José Oliver-Didier 2023-03-23 12:29:17 UTC
Created attachment 157528 [details]
Geographic position section

SUMMARY
***
Advanced search does not provide an option for searching for empty location fields.
***


STEPS TO REPRODUCE
1. Launch Digikam, click on "Search" left side tab
2. Click on "New Advanced Search..." button
3. Open "Geographic position" section on "Advanced Search" dialog window.

OBSERVED RESULT
- For the search location fields - Country, Province-State, City and Sublocation no option exists for "empty" values. Ref attached screenshot

EXPECTED RESULT
- Option to search/filter out "empty" values for each field - example: a value listed as "<empty>" in the drop-down list which when selected displays empty values or zero length values.
Comment 1 caulier.gilles 2026-01-31 19:58:01 UTC
MR : https://invent.kde.org/graphics/digikam/-/merge_requests/380

Git commit 1c6af0ae2bc649e107601e490cdfba7d3c79fd5f by Gilles Caulier, on behalf of Srirupa Datta.
Committed on 31/01/2026 at 15:45.
Pushed by cgilles into branch 'master'.

479133: Add a new option to search for empty/zero length metadata property fields

M  +153  -0    core/libs/database/item/query/itemquerybuilder.cpp
M  +48   -0    core/utilities/searchwindow/searchfields_createfield.cpp
M  +2    -0    core/utilities/searchwindow/searchgroup.cpp

https://invent.kde.org/graphics/digikam/-/commit/1c6af0ae2bc649e107601e490cdfba7d3c79fd5f