# How Do I Search Certain Frontmatter?

**URL:** https://community.silverbullet.md/t/how-do-i-search-certain-frontmatter/4457
**Category:** Lua
**Created:** [October 16, 2026, 4:04am UTC](https://community.silverbullet.md/t/how-do-i-search-certain-frontmatter/4457 "2026-10-16T04:04:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![toridnyc](https://community.silverbullet.md/user_avatar/community.silverbullet.md/toridnyc/32/3950_2.png) [@toridnyc](https://community.silverbullet.md/u/toridnyc)
#### Post date: [October 16, 2026, 4:04am UTC](https://community.silverbullet.md/t/how-do-i-search-certain-frontmatter/4457/1 "2026-10-16T04:04:12Z")

</div>

I know that I can use something like the following to give me a list of pages with a certain Tag. But how do I do the same type of query for a different piece of frontmatter?

`${template.each(query[[from index.tag "planning" where not _.done limit 10]], templates.pageItem)} `

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [October 16, 2026, 6:06am UTC](https://community.silverbullet.md/t/how-do-i-search-certain-frontmatter/4457/2 "2026-10-16T06:06:24Z")

</div>

you mean not a tag, but something else?

```auto
${query[[from p = index.pages() where p.otherAttribute == "some value"]]}

```

This queries all pages that have a `otherAttribute` attribute set to "some value"

---

<div class="post-metadata">

### Author: ![toridnyc](https://community.silverbullet.md/user_avatar/community.silverbullet.md/toridnyc/32/3950_2.png) [@toridnyc](https://community.silverbullet.md/u/toridnyc)
#### Post date: [October 16, 2026, 11:42am UTC](https://community.silverbullet.md/t/how-do-i-search-certain-frontmatter/4457/3 "2026-10-16T11:42:05Z")

</div>

Perfect! Thank you.
