# Predictive search

> The values of `search` inside `smootify-search`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/attributes/predictive-search  
Updated: 2026-10-13

## At a glance

| Tag | Shown while | Holds, for example |
|---|---|---|
| `search-no-query` | the field is empty | your own suggestions, such as popular searches |
| `search-with-query` | the field has words in it | the results, the empty message, Shopify's suggestions |
| `search-empty` | the words found no product | a message such as "No products found" |
| `search-suggestions` | Shopify has search suggestions for the words | Shopify's suggestions; put it inside `search-with-query` |

More in [the guide](https://www.smootify.io/docs/build/predictive-search).

## Where it can go

- **Inside** [`smootify-search`](https://www.smootify.io/docs/reference/elements/smootify-search).
- On text.

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `search="query"` | Query | — |
| `search="title"` | Title | inside smootify-search search-result |
| `search="vendor"` | Vendor | inside smootify-search search-result |
| `search="collection"` | Collection | inside smootify-search search-result |
| `search="type"` | Type | inside smootify-search search-result |
| `search="price"` | Price | inside smootify-search search-result |
| `search="compare-at-price"` | Compare-at price | inside smootify-search search-result |
| `search="suggested-query"` | Suggested query | inside smootify-search search-suggestions, smootify-search search-no-query |
| `search="url"` | Link | on link; inside smootify-search search-result |
| `search="image"` | Image | on image; inside smootify-search search-result |
| `search="search-page"` | Link to the search page | on link |
| `data-action="close"` | Close | on button |
