SUMMARY STEPS TO REPRODUCE 1. deselect View | Include Tag Sub-Tree 2. Select tag with sub-tags 3. OBSERVED RESULT All items with tag are shown, also ones with a sub-tag EXPECTED RESULT Items with sub-tage are not shown SOFTWARE/OS VERSIONS Windows: 10 macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION
I cannot reproduce the problem. It is possible that your TagsTree table has an error. SQLite or MySQL database? Maik
However, it would be normal for items to be displayed with sub tags, only the sub-tags items themselves must not be displayed. Maybe post a screenshot after all. Maik
Created attachment 141977 [details] Screendump I would expect the top 5 images not to be displayed when I deselect View | Tag-Sub-tree, because they have the sub-tag Zaventem. However, they are always shown.
I see no mistake, that shows 9 items of "Belgie". An error would be if the 5 items of "Zaventem" are also displayed. It's about that in the view the sub tags are not displayed. The items in "Belgie" also tagged with "Zaventem" plays no role. Maik
The last sentence in the previous comment was worded incorrectly. Since the items under "Zaventem" are also tagged with "Belgie", they are of course also displayed. If you want to hide items that are tagged with "Zaventem", you have to use the filter in the right sidebar. Maik
Thanks a lot for your quick and extensive responses. It is clear to me now how it works. I was looking for a way to display the images that have the main tag (België in the example), but not any sub-tag. For the screenshot I chose a simple example, but the real case I was looking at a main tag with a couple of thousands of images and tens of sub-tags, the images with the sub-tags also all having the main tag. To filter the images that have the main tag only I suppose I would need to (temporarily) remove the main tag from all sub-tagged items (remove België from the Zaventem images in the example).
No, you don't have to remove all of the sub-tags. The filter in the right sidebar has a "NOT" option. You can also carry out an advanced search, here too there is the option to only search for items that contain "Belgie" and not other tags. Maik
Thanks Maik! Regards, Jan