# Search

Provides the capability that lets users quickly and effectively search the content or product catalogs in a store.

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

{% hint style="success" %}
Steps

1. In the theme editor (**Customize**), click **Theme settings**
2. Locate **Search**
3. Make necessary changes
4. **Save.**
   {% endhint %}

You have the option to activate one or more of the following search features.

1. Enable Predictive Search: This feature anticipates user search queries and displays results in real-time as users type.

You can fine-tune the functionality of Predictive Search using the Search & Discovery app available on Shopify.

{% hint style="info" %}
Predictive search isn't available in all languages. See the [complete list of supported languages](https://shopify.dev/docs/api/ajax/reference/predictive-search?shpxid=e7a69a3f-9448-4E0E-C1BA-A29185925080#supported-languages).
{% endhint %}

* **Search using product's tags**.
* **Search using product's description**.

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

You can set some predefined popular search queries to suggest the search result and choose how out-of-stock products show (hide/show at last).

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

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

{% hint style="info" %}
The default fields searched on are 'title', 'product\_type', 'variants.title', and 'vendor'. For the best search experience, users should search on the default field set, or as fewer fields as possible.
{% endhint %}


---

# 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://4sh-templates.gitbook.io/opulent-os2.0/search.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.
