# Search results contain only the content of the notes?

**URL:** <https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459>\
**Category:** Bug graveyard\
**Created:** [July 20, 2020, 11:10pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459 "2020-07-20T23:10:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhixiangcai](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zhixiangcai](https://forum.obsidian.md/u/zhixiangcai)\
**Post date:** [July 20, 2020, 11:10pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/1 "2020-07-20T23:10:06Z")

</div>

When I search for a keyword in Obsidian, do I only get notes with that keyword in the note content, but not notes with that keyword in the note name?

My language is Chinese.

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [July 20, 2020, 11:38pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/2 "2020-07-20T23:38:37Z")

</div>

In 0.8 we added filename search.

---

<div class="post-metadata">

**Author:** ![zhixiangcai](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zhixiangcai](https://forum.obsidian.md/u/zhixiangcai)\
**Post date:** [July 21, 2020, 11:22pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/3 "2020-07-21T23:22:04Z")

</div>

Thanks for you reply. The am using the v0.8.0 of Obsidian, however, I still can not search the filename.

![image](https://forum.obsidian.md/uploads/default/original/2X/3/3fff94334c0272a99f4d2837fbb3d77269a06be4.png)

When I want to search a file named ‘笔记模板’,

![image](https://forum.obsidian.md/uploads/default/original/2X/4/40a8b92e7195ec0aca8d9a6da2c4594b90031461.png)

but I can not obtain the file in the search list.

![image](https://forum.obsidian.md/uploads/default/original/2X/3/3847970a39d1995a5377bc8f081e6cab54ec3bb5.png)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [July 21, 2020, 11:41pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/4 "2020-07-21T23:41:16Z")

</div>

Please checkout the docs and the changelog.

---

<div class="post-metadata">

**Author:** ![nickchomey](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nickchomey](https://forum.obsidian.md/u/nickchomey)\
**Post date:** [July 23, 2020, 11:20pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/5 "2020-07-23T23:20:38Z")

</div>

I have to say that needing to use “file:” to search filenames is not useful…

I don’t keep track of what the filenames are - I’m simply doing a search that will hopefully find the term wherever applicable.

I can see how using “file:” would be good to ONLY search in filenames, but I can’t think of any use case for not wanting to include them in a general search. This is how any search in existence works - be it Windows or any search utility. By default (if contents are indexed) it will include contents and filenames in the search, but you flag the filename if that’s all you want to look for.

Can some sort of amendment be made to reflect this?

---

<div class="post-metadata">

**Author:** ![nickchomey](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nickchomey](https://forum.obsidian.md/u/nickchomey)\
**Post date:** [July 24, 2020, 5:10pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/6 "2020-07-24T17:10:23Z")

</div>

On further thought, in addition to the “file:” operator, I think a “content:” operator would be useful as well - allowing you to specify which type of search you want to do. But the default does both.

Here is a screenshot from OneNote - it separates Title Results from Content Results. This might be a particularly good solution to this problem. I have a couple thousand notes that I’ve imported from Onenote and not having this makes it extremely hard to tidy them up and use.

 ![image](https://forum.obsidian.md/uploads/default/original/2X/8/89195e13cdb1369997eb4953ec9621b72a63e87e.png)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [July 24, 2020, 5:17pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/7 "2020-07-24T17:17:35Z")

</div>

@nickchomey This is not a bug per se but a feature request. So search\open in feature request.

---

<div class="post-metadata">

**Author:** ![AlexanderSavenkov](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alexandersavenkov/32/2758_2.png) [@AlexanderSavenkov](https://forum.obsidian.md/u/AlexanderSavenkov)\
**Post date:** [July 24, 2020, 5:23pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/8 "2020-07-24T17:23:04Z")

</div>

Indeed, just discovered this frustrating behavior and completely agree with you on this. What’s the benefit of omitting filenames from search results when I (and guess many other people) intentionally try my best to give my notes very meaningful names?

I suggest this behavior to be changed to previous behavior or be re-enabled either by default or via settings.

@zhixiangcai, would you move this thread to Bug Reports or to Feature Requests please?

---

<div class="post-metadata">

**Author:** ![zhixiangcai](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/z/df705f/32.png) [@zhixiangcai](https://forum.obsidian.md/u/zhixiangcai)\
**Post date:** [August 2, 2020, 5:01pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/9 "2020-08-02T17:01:05Z")

</div>

Hi,

You can use the syntax to search:

_file: notename_

---

<div class="post-metadata">

**Author:** ![nickchomey](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/n/3ab097/32.png) [@nickchomey](https://forum.obsidian.md/u/nickchomey)\
**Post date:** [August 2, 2020, 5:26pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/10 "2020-08-02T17:26:55Z")

</div>

This post is now in the graveyard. I already created a Feature Request here for filenames in search results by default

> [@Make default search function look in all fields - filename, content, tags, etc](https://forum.obsidian.md/t/make-default-search-function-look-in-all-fields-filename-content-tags-etc/3616/5):
>
> Thanks! I’ve edited the title and description to focus on the default search function. I created a new feature request for new operators [here](https://forum.obsidian.md/t/add-more-search-operators-like-tag-and-content/3633)

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [December 5, 2022, 2:21pm UTC](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/11 "2022-12-05T14:21:21Z")

</div>

Closed on December 5, 2022, 2:21pm UTC


