- **Java package:** `mx.quest.search` · **Published SPI:**`mx.quest.search.spi.SearchCorpus` (what every engine
indexes) and `mx.quest.search.spi.SiteSearchEngine` (the engine extension point)
## What it adds
| Surface | Where |
|---|---|
| Search box widget | `<div id="x" data-widget="search/box"></div>` on any page/master |
| Results page | an installed, editable tenant page at `/search` carrying the query-aware box widget (created `noindex`; styled by `/__plugin/search/static/search.css`); installed through the kernel's `SitePages`, so it follows the site's editorial level (published, waiting for review, or a draft the quality checks blocked) |
| JSON API | `GET /search/api?q=…` → `{query,count,results:[{url,title,snippet,score,link,terms}]}` (rate-limited per client IP as the kernel's trusted-proxy gate resolved it, `noindex`) |
| Corpus | `SearchCorpus`: every published page and content item of the kernel's `ContentCatalogView`, minus the site's exclude list — what the built-in engine and `search-lucene` both index |
| Built-in engine | full-text match over each item's title + description + **body**, in the item's own language, linked at its real URL |
| Highlight on the result page (2.1.0) | a result link carries the matched words (`#rw-hl=…`); the page it opens highlights them and scrolls to the first (CSS Custom Highlight API, restyle with `::highlight(rw-search)`); per-site switch `highlight` |
| Box only in the chrome (2.1.0) | a header/footer box no longer repeats the results on the results page; per-placement `results` setting (`auto`/`always`/`never`) on Site → Content widgets |
| Instant freshness | any page write, content-source change, site lifecycle event or plugin settings save drops that site's index at once (the plugin's `SiteEventListener`); the TTL is only the backstop |
| Operator actions | the **Rebuild index** and **Install search page** buttons and **Clear list** — CSRF-checked `POST /search/reindex`, `/search/install-page`, `/search/no-results/clear`, gated by the `search|settings` control point |
| Searches with no results | opt-in per site (**off by default** — terms can be personal data): term + count + last seen, bounded (500 terms, 90-day retention by default), never an IP or a user; listed on the settings page with a Clear action; **declared personal data**, so a site's transfer copy leaves it out |