# Tag-union implementation?

**URL:** <https://meta.discourse.org/t/tag-union-implementation/58121>\
**Category:** Development\
**Created:** [February 28, 2017, 8:20pm UTC](https://meta.discourse.org/t/tag-union-implementation/58121 "2017-02-28T20:20:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ebadgley](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@ebadgley](https://meta.discourse.org/u/ebadgley)\
**Post date:** [February 28, 2017, 8:20pm UTC](https://meta.discourse.org/t/tag-union-implementation/58121/1 "2017-02-28T20:20:23Z")

</div>

Continuing the discussion from [Tags: category restrictions, tag groups, relationships](https://meta.discourse.org/t/tags-category-restrictions-tag-groups-relationships/48260/6):

I’m interested in building a tag union capability that would mimic how tag intersections are currently implemented ([Tag intersections page](https://meta.discourse.org/t/tag-intersections-page/47952)): essentially the same result as intersections (the default category/Latest view), but doing an OR on multiple tags rather than an AND. I would appreciate any suggestions as a new Discourse developer.

My thoughts (so far) are as follows:

- Searching on multiple tags via the search page essentially provides tag-union functionality ([Does multiple tag search support AND vs OR?](https://meta.discourse.org/t/does-multiple-tag-search-support-and-vs-or/56041)). **The problem is that I don’t want the search results view – I want the default category page.** Could search results be redirected to accomplish this?

- If search results can’t be redirected, I’m open to attempting a /tags/union/ route (and have been looking into how intersection works). I would prefer to do this via plugin, but I am concerned that that is not something that could currently be accomplished via a plugin. Any suggestions here would be appreciated.

If there is sufficient user interest to add a tag-union capability into the Discourse core, I’d be willing to do it and submit a PR, but I’m hoping to find an alternative. Thanks in advance.

---

_[View the full topic](https://meta.discourse.org/t/tag-union-implementation/58121)._
