Combining `file:` and `tag:` queries shows inline tag results, said results are inaccurate if the tag is in the frontmatter

Steps to reproduce

Install Obsidian v1.4.4. Add a note, give it a tag in the Yaml frontmatter. In the search box, type a search with valid results that includes file: and tag: queries.

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

Yes, confirmed in sandbox vault.

Expected result

Querying with file:myFile and tag:myTag should display a single match for relevant files.

Actual result

Querying with file:myFile and tag:myTag produces results that match the criteria, but each result has two matches, one in the file name and the other highlighting a random part of the yaml frontmatter (ex - β€œ---”, portions of urls, snippets of letters).

Environment

SYSTEM INFO:
Obsidian version: v1.4.4
Installer version: v1.3.5
Operating system: Windows 10 Home 10.0.22621
Login status: logged in
Catalyst license: vip
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none


Additional information

Tag search:
image

Tag and file search:
image

Negative tag searches highlight random parts of the note/frontmatter:
image

I don’t think this is tied to tags, as it happens with just file: plus another search term within the note.

2 Likes

Thanks, this will be fixed in the next build!

3 Likes

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