Bug 496514 - Regular Expression search facility
Summary: Regular Expression search facility
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Advanced (show other bugs)
Version: 8.5.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-20 21:06 UTC by IanMac
Modified: 2024-11-22 06:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description IanMac 2024-11-20 21:06:56 UTC
Having got into the 100ks figure of inherited slides (now digitized) I need a sophisticated method to manage them.
I need a better search system. 
I have a structured set of tags, and when I come to process another set of images, which I have input, I quickly flag them. I then convert the flags to the head of the tag structure. That works well. 
First thing which would help is I would like to find all the images which are tagged to a particular point in the hierarchy but do not have any children tags allocated.
So given a tag structure of this sort 
Tags
    Buildings
    Canals
       Aire and Calder
       Ashby
       Ashton
            Manchester Flight
                Lock1 Below
                Lock1
                Lock2 Below
                    Islington Branch
                Lock2
       BCN
       
    Farming
        Lowland
        Upland
    Landscape
    Railways
        Presevation
           East Lancs  
         Post Grouping
             GWR
             LMS
             LNER
             Southern
         Pre Grouping
             L&Y
               Bury Shed
               Bolton Shed
             LNWR

So for example, I would like to find all the images which have the tag Canals/Ashton but have no child tag.
another example all those images which have the tag Railways/Pre Grouping/L&Y but again have no child tag.
This could easily be an extension of the current advanced search facility as it could be a tick box saying no marked child of tag .............

This would enable me to find quickly all those images where further detail may be easily identified and tagged accordingly.

It would also be beneficial to be able to create a regular expression type search for things, however this I suspect would require a lot more work to provide the ability to make things selectable as keys.
Comment 1 Maik Qualmann 2024-11-20 21:53:02 UTC
We already discussed regular expression for end users in another bug report some time ago. We don't want it.
Check out the advanced search and the ability to add and combine search groups. This should allow you to filter/search for your tags.

https://docs.digikam.org/en/main_window/search_view.html#the-advanced-search-tool

Maik
Comment 2 IanMac 2024-11-21 11:31:28 UTC
The advance search only searches for the presence of things. I need a facility which searches for things not being there.
From my example - I need to find those images which do NOT have children of a tag marked. Could you explain just how I do this with the latest release.

As to regular expression I would like it, you may not wish to implement it.
Comment 3 Maik Qualmann 2024-11-21 18:09:15 UTC
Select the child tags that should not be included, mode "In One of". In the search group header, click the "Options" and select "none of the conditions are met".

Maik
Comment 4 Maik Qualmann 2024-11-21 19:31:05 UTC
Another option, which is probably even simpler for your problem, is to use the left and right sidebar.
In the left sidebar, use the Tags view and select the tags that should be included.
In the right sidebar, use the Filter tab and use the "Must Not Have This Tag" (right mouse button context menu -> Tag Filter Mode) for the child tags.

Maik
Comment 5 IanMac 2024-11-21 23:35:31 UTC
Your second solution is nearly very good, except that I have to individually select every offspring tag and mark it as "Must Not have this Tag" If you could see your way to provide the option to provide this for a group selected set of tags and all their offsprings that would make it a dream to use, Thanks. Ian Mac
Comment 6 Maik Qualmann 2024-11-22 06:49:45 UTC
A selection of "Must Not have this Tag" can also be made with a click of the middle mouse button, which is faster than using the context menu.
It is known that it cannot be determined from the selection whether include or exclude has been selected and we already have bug wishes for this.

Maik