> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pureclarity.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Instant Search

> Show matching products under your store's search box as shoppers type, promote products and content for chosen searches, and recommend products before they type

Instant Search shows a panel of matching products under your store's search box as shoppers type. It searches your PureClarity product feed, corrects small typos, and matches product names, SKUs, variant names and SKUs, and brands. On Shopify it also matches product types and tags.

## Turn it on

1. Go to **Instant Search**.
2. Turn on **Show instant search on your store**.
3. Click **Save**.

The panel starts showing on your store's next page view.

> [!WARNING]
>
> If your theme has its own search suggestions, turn them off, or shoppers see two panels. On Shopify, open **Online Store > Themes > Customize**, go to your theme's search or header settings, and turn off **predictive search** (the name depends on your theme). On Magento and WooCommerce, look for them in your theme's or search extension's settings.
>
> On BigCommerce, Cornerstone and themes built on it need no change: PureClarity hides the theme's quick search results once its own panel shows under the search box. Other BigCommerce themes may have no setting for their suggestions, so ask your theme's developer to turn them off.
>
> If you'd rather, contact support and we can look at this for you. You'll need to give us access to your BigCommerce store so we can edit your theme. If your theme's developer keeps your theme in source control, such as GitHub, let them know we've changed it, so they add our change to their copy and don't overwrite it next time they update your theme.

## Search box

PureClarity finds your search box automatically on Shopify, BigCommerce, Magento and WooCommerce. On other sites it looks for a search field, or a box named `q`. If your theme uses a different search box, enter a CSS selector for it in **Search box selector**, such as `#header-search input`. The field shows the selector used when it's blank.

| Setting | What it does |
| - | - |
| **Start after** | How many characters the shopper types before the panel searches, from 1 to 4. It's 2 unless you change it. Below this, the panel shows your searches to try, and recommended products if they're turned on for before typing. |
| **Show prices** | Shows each product's price, and its old price when it's reduced. |
| **Show products of the type searched for first** | Puts products of the type searched for ahead of their accessories, so "bauer skates" shows skates before a skate bag. See [How results are ranked](#how-results-are-ranked). |
| **Suggest searches as the shopper types** | Completes what's typed from your product titles and types, such as "jel" to "jellycat". Choose up to 8 suggestions under **Number of suggestions**. |
| **Filter by price when a price is typed** | See [Price filters](#price-filters). |
| **Show the closest part codes when a code finds nothing** | When a code finds nothing, shows the codes closest to it, so "LC149503" shows LC149500 and other codes starting LC1495. It helps when shoppers type variants of codes you stock, not codes missing from your feed. |
| **Products this shopper saw before** | **Move up products they bought before**, **Move up products they viewed before**, and badges for them. See [How results are ranked](#how-results-are-ranked). |
| **Link to collections and brands that match the search** | Links to collections and brands that match the search, using your category and brand feeds. Choose how many of each to show, up to 6, and list any you don't want linked, one per line, in **Don't link to**. |

**View all results** at the bottom of the panel submits your store's own search form with what the shopper typed, so they reach your normal search results page. It shows how many products PureClarity found, such as "View all 24 results". If your results page uses another search engine, such as Shopify's own search, its count can be different.

## Searches to try

Searches to try show shoppers what they can search for. Up to 5 searches show under **Try searching for** as soon as the shopper clicks into the search box, before they type, where suggestions go once they start typing. Choosing one puts it in the search box and searches for it.

They also show beside a search's results when the suggestions' column would otherwise be empty, such as the left column of **Three columns** when a search has no suggestions or links, and under your no results message when a search finds nothing. Beside the results, the search on screen is marked, and choosing it takes the shopper back to the search box.

1. Go to **Instant Search**.
2. Under **Searches to try**, type up to 5 searches, one per line, such as `linen shirts`. Each can be up to 100 characters.
3. Click **Save**.

To start from your catalogue, click **Suggest from my products**. It fills the box with your most common product types and title phrases, written as your products write them. If your store has price filters, one of them is a price search, such as "dresses under £50", with an amount that finds about half of those products. Edit them as you like before you save.

Leave the box empty to show no searches to try. If recommended products show before typing too, both show. If you remove the suggestions from a layout, searches to try don't show there either.

## Price filters

With price filters, shoppers can type a price as part of their search. For example, "dresses under £50" shows dresses priced up to £50. Instant Search understands phrases such as:

* "under £50", "below £50", "less than £50", "£50 or less", "up to £50"
* "over £20", "above £20", "more than £20", "£20 and over", "from £20"
* "between £20 and £40", "£20 to £40", "£20-£40"

The rest of the search is searched for as usual. Above the products, a filter such as **Under £50** shows the price range. The shopper can click it to remove the filter and search again without the price. While a price filter applies, **View all results** doesn't show a count, because your store's own search page searches for the words without the price.

A number on its own isn't read as a price, so sizes, part numbers and model numbers search as before. For example, "nike air max 90" and "baby under 3" aren't filtered. Words such as "up to" and "from" need a currency sign or word, as in "up to £50". A price in another currency than the shopper's, or a number with a unit, such as "under 10 kg", isn't read as a price.

### Search by price

When a search has no price in it, the **Search by price** section offers up to 4 price ranges from the products found, such as **Under £25** or **£25 – £50**, each with how many products it holds. Choosing one adds that price to the search, so it shows as a filter the shopper can remove. Ranges show only when enough of the products found have prices spread widely enough to split.

Turn price filters on or off with **Filter by price when a price is typed** under **Search box**. It's on unless you untick it. Search by price needs price filters and **Show prices** turned on, and you can move or remove it under **Layout**. Price filters work for stores in English, and use the prices your store shows in the shopper's currency. Shoppers logged in to a B2B account don't get price filters or price ranges. You can reword the filters under **Text**.

## Layout

Choose how the panel is laid out under **Layout**:

| Layout | What it looks like |
| - | - |
| **List** | One column under the search box. |
| **Three columns** | Suggestions, collections and brands on the left, results in the middle, the promotion and recommended products on the right, across the page. |
| **Two columns** | Suggestions, collections and brands beside a grid of results. |
| **Image grid** | Suggestions, collections and brands as a row of buttons above large product images. For catalogues where the picture sells. |
| **Side drawer** | A full-height sheet from the side of the screen, wherever the search box is. Full screen on phones. |

**Number of products** is the most matching products the panel shows, from 1 to 12. Each layout suggests its own number, marked **(suggested)**: 6 for **List** and **Side drawer**, and 8 for **Three columns**, **Two columns** and **Image grid**, which fills two rows of 4 cards, as these layouts often show. A note beside it says how the products are laid out. Choosing another layout switches to that layout's suggested number, unless you chose your own.

Under **Sections on desktop**, use the arrows to change the order of the suggestions, collections, brands, **Search by price**, promotion banner, search results and recommended products, and to move them between columns. The search results can't move to another column. A column with nothing in it is left out, except the suggestions' column beside the results, which shows your searches to try instead if you've set some. On narrow screens, where the columns stack, they're left out too. When a search names no collection, the panel links to the collections the products found are in, those holding the most of them first, and the same for brands, so that column usually has something in it. Choosing another layout starts from that layout's own arrangement, and **Reset to the layout's sections** puts it back.

Sections you've turned off elsewhere are shown as **(off)**. Recommended products show **(Personalise plan)** if your plan doesn't include them, and **Search by price** is off while **Filter by price when a price is typed** or **Show prices** is unticked.

To take a section out of the panel, click its remove button. It moves to **Removed from desktop**, and you can click it there to add it back where it was. Any section except the search results can be removed. Removing recommended products means they don't show before typing or when a search finds nothing, and removing suggestions also removes your searches to try, which show in their place.

### Phones

Click **Desktop** or **Phones** at the top of **Layout** to choose which you're editing. On phones, which here means screens under 600 pixels wide, you can choose:

| Phone layout | What it looks like |
| - | - |
| **Same as desktop** | The desktop layout and its sections, as wide as the screen, with its columns stacked: left column, then middle, then right. This is the default. |
| **List** | One product per row with a small image, under the search box. |
| **Image grid** | Large product images, 2 across, with suggestions, collections and brands as a row of buttons. |
| **Full screen** | Covers the page under the search box, with a button to close it. One product per row. |

With a phone layout of its own, phones get their own **Sections on phones**, shown from top to bottom in the order you set. Sections you remove there go to **Removed from phones** and still show on desktop, and the other way round. Phones show the same number of products as desktop. The **Preview** card follows whichever you're editing.

With **Same as desktop**, and wherever the panel is too narrow for its columns, the sections stack in order: left column, then middle, then right. Columns swap sides on right-to-left stores.

## Appearance and text

The panel takes its fonts, colours and corners from your store's pages, so it matches your theme. To pick a colour of your own, untick **Use your store's colours** and enter an **Accent colour**. It's used for headings, links and the highlighted product, and must be dark enough to read on the white panel and its grey promotion banners.

Under **Text** you can reword every line of text in the panel, or translate it for your store's language: the headings of each section, the buttons, the messages, the price filter labels, and the **Bought before** and **Viewed before** badges. Each line can be up to 80 characters and can't be left empty. Some lines fill in what the shopper did:

* In **View all results button**, `{count}` is replaced with how many products the search found. It's left out when the count isn't known.
* In **No results message** and **Closest codes message**, `{query}` is replaced with what the shopper typed.
* In **Corrected search message**, `{query}` is replaced with the corrected search, when a misspelt search is corrected.
* In **Collection products message**, `{collection}` is replaced with the collection's name.
* In the **Price filter** labels, `{price}`, `{min}` and `{max}` are replaced with the prices the shopper typed, or the prices of a range under **Search by price**.

The close and remove filter buttons' text is read out by screen readers.

## Merchandising

Promotions put chosen products and content first for particular searches, such as a sale banner when shoppers search for "dress".

Click **Add promotion**, then:

1. Type each **search term** and press Enter, up to 20. Capitals, accents and punctuation are ignored, and so is a price in the search, so "dresses under £50" matches a promotion for "dresses".
2. Choose how terms **match**:
   * **Search contains the term**: the term's words appear together anywhere in the search. "dress" matches "red dress" but not "dresser".
   * **Search is exactly the term**: the whole search is the term.
   * **Every search no other promotion matches**: needs no terms. Use it for something to show with every search, such as a free delivery banner. Only one promotion can use it.
3. Add up to 6 **promoted products**. They're shown first, in the order you set, ahead of the search results.
4. Optionally add a **banner** with a title, text, image and link. It's shown above the products.

A promotion needs at least one product, or a banner title or image. You can have up to 100 promotions. When more than one promotion matches a search, the first in the list is used, so use the arrows to put the most specific promotions first. A promotion for every search is used only when no promotion with terms matches. Its products go first only in searches that find products themselves, not when the panel shows the closest part codes or finds nothing, and always leave a place for at least one of the search's own products, so a banner alone usually suits it best.

## Synonyms and redirects

The **Synonyms and redirects** card has a tab for each. Use **Find** to search a list by any word, tick rows to remove them together, and click **Add synonym** or **Add redirect** to add one. Changes take effect when you save.

### Synonyms

Synonyms teach search the words your shoppers use:

* `sofa, couch, settee` finds any of them when a shopper searches for one.
* `holdall => duffel bag` works one way: a search for holdall also finds duffel bags. Set **Search for** to **Only the right-hand words** to search for duffel bag instead of holdall.

Each phrase can have up to 5 words. You can have up to 50,000 synonyms. The **Repeats others** filter shows synonyms you've entered more than once, and repeats are dropped when you save.

Click **Check synonyms against my searches** to try each synonym on your last 30 days of searches where a shopper opened a product. Each synonym is marked **Worse** if it put the products shoppers opened lower, **Helps**, **No change**, or **Not searched** when the check didn't reach it. The **Make searches worse** and **Never searched** filters then pick them out, and **Remove them** removes the ones that make searches worse. The check covers your first 5,000 synonyms, and says so when you have more.

### Redirects

Redirects send shoppers straight to a page when they search for a term, instead of to your search results: your gift cards page when they search for "gift card", say, or a delivery information page for "delivery".

Click **Add redirect**, then type each **search term** and press Enter, up to 10, and enter the page to **Go to**: a path on your store, such as `/gift-cards`, or a full `https://` address.

When a shopper presses Enter, your search box's own search button or **View all results** with one of the terms in the search box, they go to that page. The whole search must be the term, its plural, or the term with or without spaces, so a redirect for "gift card" also catches "gift cards" and "giftcard", but not "gift card holder". Capitals, accents and punctuation are ignored, so "T-Shirt", "t shirt" and "T SHIRT!" are the same term. While shoppers type, the panel still shows products as usual, and the search is still counted in your Searches card.

Untick **On** to stop a redirect without removing it. To use one only for a while, such as a sale page in November, give it **From** and **Until** dates. **Until** includes that day.

Each term can go to one page, unless one of its redirects has dates: while those dates run, the dated redirect is used, and the other one the rest of the time. You can have up to 25,000 redirects. The **Ended**, **Off** and **Term taken** filters pick out redirects that have ended, are switched off, or have a term another redirect already takes. With a filter on, **Download** saves the redirects shown as a file, and **Remove all** removes them.

### Test a search

Type a search under **Test a search**, as a shopper would, to see what happens before you save:

* **On Enter** shows the page a redirect sends it to, or says it goes to your search results.
* **Shows** lists the products shoppers get. Products a synonym added are marked.
* It says which synonyms apply, with a link to each. **Show in table** lists them, and **Also search for** adds a synonym for the search.

### Import from another search tool

Moving from Klevu, Searchanise, Algolia, Doofinder, Boost, Magento, Shopify, Solr or Elasticsearch? Click **Import from another search tool** and choose the file of synonyms, redirects or promotions you exported. You'll see which tool's format the file was read as, how many of each can be added, and why any were changed or left out. Lines that can't be read are skipped, not the whole file. A redirect for searches that contain a term becomes a promotion with a banner that links to the page, and spelling corrections become synonyms.

Click **Add to this page** to add them after your own, without the ones you already have. Check the synonyms against your searches, as lists from other tools often make searches that work worse, then save.

## When a search finds nothing

When a search matches no products, the panel tries, in order:

1. **Your promotion** for the search, if one with terms matches it. A promotion with only a banner still stops the steps below, so the banner shows with your no results message. A promotion for every search doesn't count here.
2. **The closest part codes**, when the search looks like a code and **Show the closest part codes when a code finds nothing** is ticked.
3. **The collection the search names.** If no product matches but the search is the name of one of your collections, such as "knitwear" when no product title says knitwear, the panel shows that collection's most popular products under **Showing products in Knitwear**. This needs **Link to collections and brands that match the search** turned on.

If none of these finds anything, the panel shows your **No results message**, then your searches to try, then recommended products if **Show when nothing matches the search** is ticked, so shoppers have somewhere to go next. In column layouts, searches to try fill the suggestions column instead, and they don't show in a layout you've removed the suggestions from.

These searches still count as finding nothing in your Searches card, so they still show in your lost searches.

## Recommended products

The panel can show recommended products when the shopper hasn't typed yet, and when nothing matches their search. In layouts that give them a column of their own, such as **Three columns**, they also show beside the results of every search. Remove them from a layout under **Layout** to hide them there.

Recommended products come with the **Personalise** plan. Without it, the panel shows your searches to try and the no results message instead.

| Setting | What it does |
| - | - |
| **Heading** | The heading above the products, such as "Popular right now". |
| **Products to recommend** | **Recommended for each shopper**, **Best sellers**, **Trending now**, **New arrivals**, **Recently viewed**, **Reach free delivery** or **Continue their last search**. |
| **Heading while products reach free delivery** | Only for **Reach free delivery**. The heading shown when the products take the basket over your free delivery threshold, such as `Add {remaining} for free delivery`. `{remaining}` is replaced with the amount left to spend. |
| **Heading while products are for a search** | Only for **Continue their last search**. The heading shown when the products are for one of the shopper's searches, such as `Still looking for {term}?`. `{term}` is replaced with that search. |
| **Number of products** | From 1 to 8. |
| **Show before the shopper starts typing** | Shows them as soon as the shopper clicks into the search box. |
| **Show when nothing matches the search** | Shows them under the no results message. |
| **Pinned products** | Up to 8 products shown first, before the recommendations. |

Products that are out of stock or excluded from recommendations aren't recommended.

**Reach free delivery** recommends products that take the shopper's basket over your free delivery threshold, set under **Settings > Configuration**. Shoppers with an empty basket, or who already have free delivery, see products recommended for them instead, under the usual **Heading**.

**Continue their last search** picks up where the shopper's recent searches left off, on any page and on their next visit. It shows products for one of their latest searches that they haven't viewed yet, trying first the searches where they didn't click a product. If they typed a price, such as "dresses under £50", only products in that range are shown. Shoppers who haven't searched see products recommended for them instead, under the usual **Heading**.

## How results are ranked

Instant Search orders the products a search finds so the most likely ones come first:

* **In-stock products come first.** Products shoppers can buy go ahead of those they can't. On Shopify, products you keep selling when out of stock count as in stock.
* **Products of the type searched for go ahead of their accessories**, while **Show products of the type searched for first** is ticked under **Search box**. It's on unless you untick it. Instant Search uses the product type in your feed, and your collection names, to tell what a search is for. A search for "wahl clippers" puts products in collections such as "Clippers" or "Barber Clippers" above oils and combs whose titles also mention clippers. Collections of accessories or parts, such as "Clipper Oil" or "Clippers & Accessories", don't move their products up, and nor do collections you list under **Don't link to**.
* **Popular products rank higher** among products that match a search equally well, using how often each is viewed and bought.
* **Products your shoppers choose move up.** Each night, Instant Search learns from the products shoppers open and buy after searching on your store's search results page, and reorders the top 50 results for each search to match. It only does this once your store has enough searches to prove the new order is better on searches it hasn't learned from. Until then, results are ordered as before.
* **Products this shopper bought or viewed before move up.** Up to two move up, after your promoted products, bought before first, and every one is labelled **Bought before** or **Viewed before** in your theme's badge style. Out-of-stock products don't move. Turn moving up, or the badges, on or off under **Products this shopper saw before** in **Search box**. What a shopper bought and viewed is kept in their browser, only with their consent.

Ranking never adds or removes products from a search, and your promoted products still come first. Learning from your shoppers needs nothing set up.

## Preview

The **Preview** card, on the right of the page, shows where each section goes in the chosen layout, with your products for your store's top search, or a word from your products when there are no searches yet. It changes as you edit, before you save.

To try the panel itself, open the **Try it** card at the top of the page and click **Show the live preview**. It shows the panel on a page in your store's styling, on desktop or phone, and you can search your products. Changes show there before you save, and nothing you do there is recorded. The card stays open or closed for you on your next visit.

The previews use your store's main currency and list prices. They don't move up popular products, products your shoppers choose, or products a shopper saw before, so the order on your store can be different. Links in the live preview don't open, and it doesn't follow redirects: use [Test a search](#test-a-search) for those.

Recommended products in the previews are your pinned products, then a sample of your store's products, as the previews can't know a shopper's own. **Reach free delivery**'s heading is shown for a sample basket 12.50 short of free delivery.

## Results

The **Last 28 days** card shows **Panels shown** (pages where the panel showed products, counted once per page), **Product clicks** (on products, recommended products and banners with a link), the click rate, and **Attributed revenue** from orders that followed a click.

The **Searches** card shows what shoppers searched for in the panel over the last 28 days:

* How many searches there were, how many found nothing, the click rate, the average click position, revenue and revenue per search.
* **Where shoppers click**: the share of clicks at each position in the panel.
* **Products shoppers saw before**: how often products were moved up or labelled, and how often shoppers clicked them.
* **Top searches** and **Searches that sell**.
* **Lost searches**: searches that mostly found nothing, or found products shoppers rarely clicked. Click **Add promotion** or **Add synonym** beside one to fix it.

Searches show a few minutes after they're made. Searches that look like an email address or a phone, card or order number aren't recorded. Only users who can see analytics see this card.

## Good to know

* **Search results come from your product feed.** New products, and changes to names, brands and variants, show in the panel after your next feed. When Instant Search is first turned on, run a full feed so brand and variant names are searchable.
* **Products excluded from search** aren't shown in the matching products. Products you promote are shown even if they're excluded from search, and recommended products follow your recommendation settings.
* **B2B stores**: shoppers logged in to an account see their account's or customer group's prices, and only the products it can buy.
* **Keyboard**: shoppers can press the down arrow to move into the panel, the up and down arrows to move through a column, left and right to move between columns, and Home and End to jump to a column's first or last item. Escape or Tab closes the panel and goes back to the search box.
* **On-site messages** don't open while the panel is open.
* **Suggestions are written as your product titles write them**, with their apostrophes and hyphens, such as "women's tops" and "t-shirts".


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.