# Search behavior

Megamog Search provides the capability to quickly and effectively refine product catalogs or website content.

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

{% hint style="success" %}
Steps

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

## Search suggestions

**Predictive search** (search suggestions) shows suggested results as you type. It helps your customers refine their search without being redirected to a search results page, and quickly explore your store by seeing top results for suggested search terms, products, collections, and more.

You can customize the behavior of predictive search with the [Search & Discovery app](https://help.shopify.com/en/manual/online-store/search-and-discovery) from Shopify.

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

You can enable one or all of the following features for search.

* **Enable search suggestions**: predicts what users are searching for and shows results as users type.
* **Show product vendor** (when the search suggestions feature is enabled)
* **Show product price** (when the search suggestions feature is enabled).

{% 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).
* By default, a maximum of 10 possible results are shown across all the queried result types.
  {% endhint %}

## Product types

Show a dropdown next to the Header search box to let customers pick a particular product type to search for.&#x20;

If enabled, you should also [add the Product Type filter within the Search & Discovery app](https://help.shopify.com/en/manual/online-store/search-and-discovery/filters).

All product types are listed in the dropdown filter by default.&#x20;

If you want to list out specific types, use commas to separate them.

<figure><img src="/files/bKFsB32U1owWvMLM8ZZY" 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://docs.foxecom.com/megamog-theme/theme-settings/search-behavior.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.
