# filter-search

> Free-text query of the block; typing or submitting sets the search query, also in a collection (data-collection).

Status: Ready (Smootify 2.0)  
Add-on: Search & discovery  
URL: https://www.smootify.io/docs/astro/reference/elements/filter-search  
Updated: 2026-10-21

## Where it can go

- **Inside** [`smootify-search-discovery`](https://www.smootify.io/docs/astro/reference/elements/smootify-search-discovery).
- **Must contain** `form`.
- **Out of place,** Smootify removes it from the page: data-expand panels count as inside.

## What it requires

- The **Search & discovery** extension (lite or server plan, or the extension activated in the Smootify dashboard). Without it, the element does nothing.

## Fields in the form

Each field’s `name` attribute tells Smootify what the field holds.

| Name | Field | What it does |
|---|---|---|
| every input but the submit (any name) | `input type="text"` | Renamed `query`; the first one sets the search & discovery query. |

## Loading

Its code loads only on pages that have `filter-search`.
