# Property entry for “tags” should be semantically equivalent to body text hashtags

**URL:** <https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369>\
**Category:** Help\
**Tags:** properties, tags\
**Created:** [July 28, 2023, 11:21pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369 "2023-07-28T23:21:54Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitchmeister](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mitchmeister/32/25698_2.png) [@mitchmeister](https://forum.obsidian.md/u/mitchmeister)\
**Post date:** [July 28, 2023, 11:21pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/1 "2023-07-28T23:21:54Z")

</div>

Surely a property entry for “tags” for (say) `self` should be semantically equivalent to body text of `#self`. But using the Core Search plugin, a search for

`tag:self` is not equivilent to `#self`

```auto
---
tags:
  - self
---

```

is not equivilent to

```auto
body text #self

```

Is this an intentional distinction?

---

<div class="post-metadata">

**Author:** ![vanderwal](https://forum.obsidian.md/user_avatar/forum.obsidian.md/vanderwal/32/4230_2.png) [@vanderwal](https://forum.obsidian.md/u/vanderwal)\
**Post date:** [July 29, 2023, 2:08am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/2 "2023-07-29T02:08:33Z")

</div>

Oh, I deeply agree here.

I’m not sure how Obsidian has been handling multi-term tags with the hashtag, but that has been really helpful. But, when searching across all my files I can search with the “#” and know I’m getting everything with that tag, no matter if I’m in Obsidian or not.

I use #tags lightly and mostly in front matter and occasional inline at the end of a block or paragraph to pull that section in with a search. Tags are like hooks to pull things together. In the mid-2000s onward I was one of “the” tagging people going to academic, standards, and developer conferences walking people through the use, particularly for personal vocabulary expression (but, far beyond that as well).

The great thing about markdown is you can have a #tag, but also in tools like Obsidian an other services in the last 5 years you have a backlink to use a bridge to a related resource, which functions very differently from a tag. The two methods should never be combined into one. Their use and purposes are do not align and shouldn’t be treated in the same way because of that.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [July 29, 2023, 3:19am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/3 "2023-07-29T03:19:58Z")

</div>

The query `tag:self` searches the tag index, so it picks up all tags. Searching `#self` does a plain text search for that exact string, which doesn’t appear in your example.

---

<div class="post-metadata">

**Author:** ![mitchmeister](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mitchmeister/32/25698_2.png) [@mitchmeister](https://forum.obsidian.md/u/mitchmeister)\
**Post date:** [July 29, 2023, 5:17am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/4 "2023-07-29T05:17:04Z")

</div>

Yeah that’s exactly the problem. Surely a metadata tag in YAML should be treated the same? Isn’t `#self` a tag of “self”? The Tags core plugin thinks that `#self` is. I’m confused.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [July 29, 2023, 2:56pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/5 "2023-07-29T14:56:15Z")

</div>

No, because a search for `#self` isn’t a tag search. It’s a search for that literal text string, like a search for `se#lf` or `self#`. If you have a url like `https://example.com/realms#self` it will match that; `tag:self` won’t because it’s not a tag. If you want any kind of special search that does something other than searching for literal text, you need to use a search operator.

> **[Search - Obsidian Help](https://help.obsidian.md/Plugins/Search)**
>
> The Search plugin helps you find files in your vault. By default, you can find Search in the left sidebar (magnifying glass icon). You can also open Search by pressing Ctrl+Shift+F (or Cmd+Shift+F on…

---

<div class="post-metadata">

**Author:** ![vanderwal](https://forum.obsidian.md/user_avatar/forum.obsidian.md/vanderwal/32/4230_2.png) [@vanderwal](https://forum.obsidian.md/u/vanderwal)\
**Post date:** [July 29, 2023, 4:56pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/6 "2023-07-29T16:56:41Z")

</div>

Not only does the tag plug-in think it is wrong, but so does every other markdown app that also uses these files.

The great advantage of Obsidian is it has lived wonderfully in an ecosystem of other markdown apps and services that can have extended capabilities with things they can do with markdown.

Changing to a non-standard method of tagging breaks the reason many like and love Obsidian, which is it has been a really good member of an ecosystem that extends capabilities of markdown notes in a folder without breaking anything for any other app or service.

---

<div class="post-metadata">

**Author:** ![Sagitman](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@Sagitman](https://forum.obsidian.md/u/Sagitman)\
**Post date:** [July 29, 2023, 5:56pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/7 "2023-07-29T17:56:37Z")

</div>

+1 for being able to use tags as data for a given property that is not the default “tags” property

---

<div class="post-metadata">

**Author:** ![mitchmeister](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mitchmeister/32/25698_2.png) [@mitchmeister](https://forum.obsidian.md/u/mitchmeister)\
**Post date:** [July 30, 2023, 12:32am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/8 "2023-07-30T00:32:58Z")

</div>

-1. Disagee 100%. A search for `#tag` has been a tag search in Obsidian up until this point. Ask your users what they expect & I bet 99% of people would agree. And even your own Tags plugin agrees.

I really hope that the Obsidian dev team changes their mind because its either an oversight or the first big misstep the team has taken.

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [July 30, 2023, 3:54pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/9 "2023-07-30T15:54:50Z")

</div>

Searching for #tag in the search pane has never been a tag search, it searches notes that contain that exact text, which won’t return a note that uses the `tags:` field in the frontmatter.

Regardless, I have to confess I’m a bit at a loss as to how this relates to this FR? I’m afraid that it’s getting a bit off-topic.

---

<div class="post-metadata">

**Author:** ![mitchmeister](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mitchmeister/32/25698_2.png) [@mitchmeister](https://forum.obsidian.md/u/mitchmeister)\
**Post date:** [July 31, 2023, 11:04pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/10 "2023-07-31T23:04:22Z")

</div>

I think differentiating between #atag and tag:atag is a really bad call & is going to upset & confuse a lot of your users.

And “Searching for #tag in the search pane has never been a tag search” is not how tag search works in “my” Obsidian (1.4.1)

 ![Screenshot 2023-08-01 at 10.56.35 AM](https://forum.obsidian.md/uploads/default/original/3X/1/2/127fc4ebd209dec61074dc8de0b230f1c139f011.png)

(`tag:#self` and `tag:self` produce the same results)

Or how the tag plugin works

 ![Screenshot 2023-08-01 at 11.03.18 AM](https://forum.obsidian.md/uploads/default/original/3X/5/9/59a3a52466f88395ff34c809bfa9fd46dd7b9cd3.png)

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [August 2, 2023, 10:50pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/11 "2023-08-02T22:50:33Z")

</div>

Those both contain the literal text `#self`.

---

<div class="post-metadata">

**Author:** ![mitchmeister](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mitchmeister/32/25698_2.png) [@mitchmeister](https://forum.obsidian.md/u/mitchmeister)\
**Post date:** [August 3, 2023, 1:55am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/12 "2023-08-03T01:55:17Z")

</div>

🙂 we’ll agree to disagree. I can’t think of a single example in an app where the hashtag has ever been differentiated from a “tag”. Also the tags core plugin has always worked with (at least) hashtags. Regardless of these results, I think differentiating between #atag and tag:atag is a really bad design call & is going to upset & confuse a lot of your users. I hope the product team changes its mind.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [August 3, 2023, 2:30am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/13 "2023-08-03T02:30:52Z")

</div>

I’ve split this discussion out from [Properties: Recognize tags in text property when formatted as "#tags"](https://forum.obsidian.md/t/properties-recognize-tags-in-text-property-when-formatted-as-tags/63812/).

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [August 3, 2023, 2:42am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/14 "2023-08-03T02:42:01Z")

</div>

Hashtags aren’t differentiated from tags. They and YAML tags are both added to the tag index, which you search by using the `tag:` operator (or by viewing the tags tab). Their plain text forms differ because Obsidian is using 2 common conventions (hashtags and YAML) that weren’t designed to go together. The inconsistency is awkward and causes some misunderstandings, but so far the confusion levels seem manageable.

(Also I assume you mean “your users” rhetorically, but to be clear, they’re not mine — I’m just a volunteer).

---

<div class="post-metadata">

**Author:** ![mitchmeister](https://forum.obsidian.md/user_avatar/forum.obsidian.md/mitchmeister/32/25698_2.png) [@mitchmeister](https://forum.obsidian.md/u/mitchmeister)\
**Post date:** [August 3, 2023, 3:47am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/15 "2023-08-03T03:47:51Z")

</div>

> [@CawlinTeffid](#):
>
> The inconsistency is awkward and causes some misunderstandings, but so far the confusion levels seem manageable.

I haven’t even been aware that there was a distinction between tags and hashtags until now. I think that the addition of the really great Properties feature in 1.4 will make this distinction obvious to most users for the first time in a way that causes unnecessary confusion.

---

<div class="post-metadata">

**Author:** ![CawlinTeffid](https://forum.obsidian.md/user_avatar/forum.obsidian.md/cawlinteffid/32/82899_2.png) [@CawlinTeffid](https://forum.obsidian.md/u/CawlinTeffid)\
**Post date:** [August 3, 2023, 5:11am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/16 "2023-08-03T05:11:00Z")

</div>

Yeah, the main source of confusion will probably shift. Until now I think the worst, commonest tag confusion has been people putting hashtags in the frontmatter field, not realizing that they don’t work. “Why aren’t my tags appearing in search?” Some people didn’t notice it didn’t work for a long time because they always searched `#tag` instead of `tag:`. 😅

If you like you can file a feature request for `#tag` to be a tag search instead of a plain text search (tho there’d need to be a way to do a plain text search version). Or actually search the forum first in case it’s been requested already. I wouldn’t pin hopes on it being implemented, but who knows? There are arguments for it.

---

<div class="post-metadata">

**Author:** ![ms047](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ms047/32/32937_2.png) [@ms047](https://forum.obsidian.md/u/ms047)\
**Post date:** [September 1, 2023, 9:59am UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/17 "2023-09-01T09:59:08Z")

</div>

Related issue: with the new ‘properties’ feature in obsidian 1.4 (which if I understand correctly is simply a shiny user interface to edit YAML fields - which I think is great), given that the ‘text’ and ‘list’ property types now handle internal and external links, shouldn’t they also handle the # syntax for tags? I find it confusing that 1) “tags” are a property NAME and not a property TYPE 2) it is impossible to add a bunch of tags in a text property.

For that reason, it is sadly impossible for me to drop the “::” dataview syntac and fully switch to properties:  
 ![Screenshot from 2023-09-01 11-01-28](https://forum.obsidian.md/uploads/default/original/3X/c/f/cf879af225c0a692273d8c1d71eee61649b16927.png)

So that it is possible to have clickable tags in dataview fields:  
 ![Screenshot from 2023-09-01 11-05-27](https://forum.obsidian.md/uploads/default/original/3X/6/0/60a3c4e8428815214d2a9b9bc8580e938a49d3b2.png)

---

<div class="post-metadata">

**Author:** ![churnish](https://forum.obsidian.md/user_avatar/forum.obsidian.md/churnish/32/89588_2.png) [@churnish](https://forum.obsidian.md/u/churnish)\
**Post date:** [October 13, 2024, 12:00pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/18 "2024-10-13T12:00:39Z")

</div>

The current system allows to distinguish between frontmatter and inline tags in search, which is supremely useful. For example, I may want to find all instances of inline ‘#ToDo’ in my vault (and exclude from search notes w/ ‘#ToDo’ in frontmatter) or vice versa. If “#example” was treated the same as “tag:example” in search, this wouldn’t be possible.

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [October 13, 2024, 1:05pm UTC](https://forum.obsidian.md/t/property-entry-for-tags-should-be-semantically-equivalent-to-body-text-hashtags/64369/19 "2024-10-13T13:05:32Z")

</div>

I tested this and `["tags":xxx]` make exact queries to frontmatter meaning `#ToDo` and `ToDo` are slightly different. Then `tag:xxx` queries both inline and frontmatter results and it doesn’t matter if you use hashtag in the frontmatter or not. Then finally searching `#ToDo` will include frontmatter and inline tags if hashtag is used in the frontmatter. If you want to exclude frontmatter results, you can use `-["tags":ToDo] tag:ToDo` or `-["tags":ToDo] #ToDo`. I think the current behaviour of hashtag vs no hashtag in the frontmatter is confusing, because you can use these three queries to select the correct option:

1. `["tags":xxx]` (only frontmatter)
2. `-["tags":xxx] tag:xxx` (only inline tags)
3. `tag:xxx` (both frontmatter and inline tags)

In these queries [property search](https://help.obsidian.md/Plugins/Search#Search%20properties) is used to indicate if frontmatter results are included and one doesn’t have to decide whether to use hashtags in the frontmatter or not. I think searching `#xxx` works fine because one should know about `tag:`, `[tags:xxx]` and `-[tags:xxx]`.
