# Search not including file names

**URL:** <https://forum.obsidian.md/t/search-not-including-file-names/4494>\
**Category:** Basement\
**Created:** [August 18, 2020, 8:52am UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494 "2020-08-18T08:52:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![RalfW](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ralfw/32/636_2.png) [@RalfW](https://forum.obsidian.md/u/RalfW)\
**Post date:** [August 18, 2020, 8:52am UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/1 "2020-08-18T08:52:47Z")

</div>

### Steps to reproduce

Create note with title “Mighty Eagle” (filename becomes `Mighty Eagle.md`).

Enter “Shiny Panda” into note as its content.

Search (shift-cmd-F) for “eagle”, then search for “panda”.

### Expected result

The file just created should show up in the results for both searches.

### Actual result

The file just created shows up only in the second result when searching for a word inside the file.

### Environment

- Operating system: maxOS
- Obsidian version: 0.8.2

* * *

### Additional information

I expect the search to include filenames. They are part of a note. I don’t want to be forced to repeat filenames as headlines inside a note.

At least inclusion of filenames should be an option.

---

<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:** [August 18, 2020, 10:18am UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/2 "2020-08-18T10:18:51Z")

</div>

Not a bug unfortunately: the developers call this a feature. See [here](https://forum.obsidian.md/t/search-results-contain-only-the-content-of-the-notes/3459/9) and [here](https://forum.obsidian.md/t/make-default-search-function-look-in-all-fields-filename-content-tags-etc/3616/7).

---

<div class="post-metadata">

**Author:** ![ryanjamurphy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryanjamurphy/32/334_2.png) [@ryanjamurphy](https://forum.obsidian.md/u/ryanjamurphy)\
**Post date:** [August 18, 2020, 2:09pm UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/3 "2020-08-18T14:09:35Z")

</div>

Search for file names by using the `file:` operator. And please search before posting new issues, this has been discussed repeatedly recently.

@AlexanderSavenkov It’s not that it’s a “feature,” but it’s the way it currently works. Keep in mind that Obsidian is still in Beta. Search might continue to evolve.

To wit, please add likes/replies to the feature request on changing this behaviour if you want it to change: [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)

---

<div class="post-metadata">

**Author:** ![RalfW](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ralfw/32/636_2.png) [@RalfW](https://forum.obsidian.md/u/RalfW)\
**Post date:** [August 18, 2020, 2:22pm UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/4 "2020-08-18T14:22:39Z")

</div>

Thanks for the info. I trusted the suggestions of related posts when I created the posting; nothing showed up there that seemed relevant. Sorry.

To me, though, the `file:` operator is just a workaround since I don’t want to think about where a search term might be located. For now it’s better than nothing 😉

---

<div class="post-metadata">

**Author:** ![ryanjamurphy](https://forum.obsidian.md/user_avatar/forum.obsidian.md/ryanjamurphy/32/334_2.png) [@ryanjamurphy](https://forum.obsidian.md/u/ryanjamurphy)\
**Post date:** [August 18, 2020, 3:54pm UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/5 "2020-08-18T15:54:27Z")

</div>

No worries! Glad to be helpful.

---

<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:** [August 22, 2020, 4:09pm UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/6 "2020-08-22T16:09:01Z")

</div>

The guys fixed the default behavior in 0.8.5, yay!

---

<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:** [April 1, 2023, 1:50pm UTC](https://forum.obsidian.md/t/search-not-including-file-names/4494/7 "2023-04-01T13:50:08Z")

</div>

Closed on April 1, 2023, 1:50pm UTC


