# Searching efficiently through groups of tags

**URL:** https://meta.discourse.org/t/searching-efficiently-through-groups-of-tags/121467
**Category:** Announcements
**Tags:** search, tag-groups
**Created:** [June 27, 2019, 8:01am UTC](https://meta.discourse.org/t/searching-efficiently-through-groups-of-tags/121467 "2019-06-27T08:01:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 27, 2019, 8:01am UTC](https://meta.discourse.org/t/searching-efficiently-through-groups-of-tags/121467/1 "2019-06-27T08:01:58Z")

</div>

[https://github.com/discourse/discourse/commit/8f7a387aa7553c05fbab478e3d9f3a16e2cd3ca2](https://github.com/discourse/discourse/commit/8f7a387aa7553c05fbab478e3d9f3a16e2cd3ca2)

We just amended search so it falls back to tag groups after attempting to search for categories and tags.

Tag groups which are managed in the `/tag-groups` route allow you to create grouping of tags with special behaviors.

In our internal use we like to group `runbook` and `knowledge-base` as our `docs` group.

Once you create a grouping search will also be able to search the grouping.

The term:

`reboot #docs`

Will:

1. Check if there is a `docs` category - if so, scope results to the `docs` category.

2. Check if there is a `docs` tag - if so, scope results to the `docs` tag.

3. Check if there is a `docs` tag group - if so, scope results to the `docs` tag group.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 1, 2023, 12:39pm UTC](https://meta.discourse.org/t/searching-efficiently-through-groups-of-tags/121467/3 "2023-12-01T12:39:12Z")

</div>


