Excluding nested tags does not work in search

Steps to reproduce

Open sandbox. Create some tags and nested (in my case 3) tags. Then try searching for all main tag. It works perfectly. Try searching for each nested tag. It works perfectly. Then try searching by excluding one nesting tag (tag:#test -tag:#test/tag2). It’s broken.

Did you follow the troubleshooting guide? [Y/N]

Yes.

Expected result

I have to get the search result for all tags in the search query, including the parent tag, as well as all nested tags, but without one excluded nested tag.

Like in this screnshot

Actual result

The search returns absolutely nothing.

Environment

SYSTEM INFO:
Obsidian version: v1.6.3
Installer version: v1.5.3
Operating system: Windows 10 Pro 10.0.22631
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

About 7 months ago, there was no such problem.
Like in this topic

Tag is note level operator not a line level.
The result is correct

Understood you. If there is at least one tag in the FILE that needs to be excluded, then such a file will not even be shown in the search results and it will not be indexed by other tags.

Maybe you should add it to help.obsidian.md a footnote about this question?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.