# Hoe een categorie uit te sluiten van zoeken of zoeken door alle categorieën behalve één+

**URL:** https://meta.discourse.org/t/how-to-exclude-a-category-from-search-or-search-through-all-categories-except-one/275051
**Category:** Development
**Tags:** search, rest-api
**Created:** [14 augustus 2023 om 12:51 UTC](https://meta.discourse.org/t/how-to-exclude-a-category-from-search-or-search-through-all-categories-except-one/275051 "2023-08-14T12:51:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alimot\_Akinbode](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alimot_akinbode/32/309959_2.png) [@Alimot\_Akinbode](https://meta.discourse.org/u/Alimot_Akinbode)
#### Post date: [14 augustus 2023 om 12:51 UTC](https://meta.discourse.org/t/how-to-exclude-a-category-from-search-or-search-through-all-categories-except-one/275051/1 "2023-08-14T12:51:14Z")

</div>

I’m trying to exclude a category from but this feature does not seem to work.As an alternative, I also tried to search through multiple categories but this doesn’t work either. Is there a way around this?

---

<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: [14 augustus 2023 om 13:30 UTC](https://meta.discourse.org/t/how-to-exclude-a-category-from-search-or-search-through-all-categories-except-one/275051/2 "2023-08-14T13:30:46Z")

</div>

Hello and welcome @Alimot_Akinbode 🙂

The search doesn’t currently support those features, however we do have a new set of topic filters which has more scope for that sort of combination (which will hopefully become part of the search as well at some point 🤞).

We have them enabled on Meta at the moment at if you want to check them out. 👍 [https://meta.discourse.org/filter](https://meta.discourse.org/filter)

And you can read more about them in:

> [@Topics list filter feature](https://meta.discourse.org/t/experimental-topics-list-filter-feature/263641):
>
> We have recently introduced an innovative [/filter](https://meta.discourse.org/filter) route, enabling more sophisticated filtering of the topics list. Significantly, this marks the initial step towards a unified topic filtering language for both search and filtering. Additionally, the dedicated route for topic list filtering enhances the customizability of the sidebar, as users can now incorporate links as [custom section links](https://meta.discourse.org/t/custom-sidebar-sections-being-tested-on-meta/255303) within the sidebar. How it works The [/filter](https://meta.discourse.org/filter) has an input field which users can input a query string to …

---

<div class="post-metadata">

### Author: ![Alimot\_Akinbode](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alimot_akinbode/32/309959_2.png) [@Alimot\_Akinbode](https://meta.discourse.org/u/Alimot_Akinbode)
#### Post date: [14 augustus 2023 om 18:26 UTC](https://meta.discourse.org/t/how-to-exclude-a-category-from-search-or-search-through-all-categories-except-one/275051/3 "2023-08-14T18:26:09Z")

</div>

Thank you @JammyDodger . I just checked this out and it’s looks good. However, I’ll like to know if this has a json endpoint just like `/search.json`
