# Search in custom fields

{% embed url="<https://youtu.be/U9Uc-lfzDZI>" %}
Searching post metadata with Ajax Search Pro
{% endembed %}

```
Search Sources -> Post Type Search -> Search in custom fields
```

In some cases you might need to search in custom fields as well, as some custom post types store data in custom fields.

### Regular Engine

**Searching within specific fields**

* Use the search bar to look for the desired fields
* Drag & Drop the fields needed from the left side of the list to the right

<figure><img src="/files/WjMGVmpj3Xzp3oYMMcG0" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KSyEdaXZRT3xMTCnu6hX" alt=""><figcaption></figcaption></figure>

**Searching all fields** In cases where most of the fields are required for search, it is easier to simply enable the *Search all custom fields?* option.

<figure><img src="/files/QKzIg1oB9OD1gQIvKmXA" alt=""><figcaption></figcaption></figure>

### Index Table Engine

Use the same option type under the Index Table settings submenu, on the General options panel.

<figure><img src="/files/7kxHE7pyvFXP2Z9vWoeP" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LICXsh1dLWs9uz8aNlEF" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.ajaxsearchpro.com/general-settings/search-in-custom-fields.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
