# Search By Product SKU

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

### Regular engine (default)

* Under the **Search Sources -> Post Type Search** panel scroll down a bit until you see the **Search in all custom fields? ..or search in selected custom fields** option.
* Into the search input, type "sku". The field "\_sku" should show up.
* Drag the \_sku field to the right side and save the settings.

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

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

### Index Table engine

For this to work, you need to have a [configured](/index-table.md#index-table) and [enabled](/index-table/enabling-index-table-engine.md) index table engine.

* On the Index Table -> General panel scroll down until you see the **Index Custom Fields** option
* Into the search input type "sku"
* The field "\_sku" should display
* Drag the field to the right side, and save the settings
* Click the "Create new Index" button (green button on the top) to index the newly added field

![](/files/isd92pZA2xACo3pdQcTk)


---

# 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/search-by-product-sku.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.
