> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchpro.com/general-settings/search-in-terms-categories-tags....md).

# Search by categories, tags or other terms

Searching post types (post, page, products etc..) by categories or other taxonomy terms (product categories, portfolio categories etc..)

{% embed url="<https://youtu.be/raMnRioLJsY>" %}
Searching by Taxonomy Terms in Ajax Search Pro
{% endembed %}

## Solution 1 - Regular engine (default)

```
Search Sources -> Post Type Search -> Search in Terms (categories, tags)
```

If you need to look for phrases in categories or other terms and return the related custom posts, then you should turn on this option.

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FPtmSCw0SrP0DlD7tvJok%2Fimage.png?alt=media&amp;token=b92766d6-b541-4ba2-b25f-b77005db2252" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FBX9Z0YTYKOgZYeFoE2hG%2Fimage.png?alt=media&amp;token=6c87ba11-1698-41b4-89c2-abd04e6a9cf1" alt=""><figcaption></figcaption></figure>

*Please not that this option is extremely resource heavy! Sites with lots of posts/products will most likely experience higher delays in ajax search. In case of performance issues, please consider using the second solution.*

## Solution 2 - Index table engine

```
Index table (submenu) -> General options -> Index taxonomies
```

If you are using the index table engine, you can choose which taxonomy terms to index along with the post types you have choosen.

*Please note that this solution only works if you use the index table engine. You can read more* [*about using it here*](/index-table.md)*.*

![](http://i.imgur.com/CVYvekd.png)

Tags: *search in categories, search in category, search in tags, category as result, categories as results, terms as results, return categories, return tags, return taxonomy terms*
