# 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="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2F7MV0TysEP2inPGKYZ0CE%2Fimage.png?alt=media&#x26;token=28ab9090-e5dc-4fef-9b56-5efd4c0f3de6" 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%2FvWdVFzLg91SWMx2lZWEa%2Fimage.png?alt=media&#x26;token=64e689ed-3011-412a-b0b8-ee58917afec8" 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="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FPwVKaIBhZ3sacvqqo5zp%2Fimage.png?alt=media&#x26;token=75ab7ee6-2207-44c2-a1ae-962221ed3845" 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="https://1706764988-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-L9jkFgNo4lpUof35gvS%2Fuploads%2FFns0ypv7u8M6TBFKrGa5%2Fimage.png?alt=media&#x26;token=6405d161-f4e1-4fe1-8c73-1aa7ce618526" 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%2FpE4vWoKgrg6J58UDoKTu%2Fimage.png?alt=media&#x26;token=7a91b4e6-1386-49f0-ad5e-2770bd1223f9" alt=""><figcaption></figcaption></figure>
