# Runway Search plugin — design & reference > On-site search as a **query surface + a swappable engine over one corpus**. `search` publishes its own SPI — > `SearchCorpus` (what every engine indexes) and `SiteSearchEngine` (the engine extension point); `../search-lucene` > implements the second and reads the first. Since 2.0.0 the plugin links **only the Runway SPI** (service tier, > SPI `1.0.0`). See the shared `../docs/PLUGIN-AUTHORING-GUIDE.md` and > [`docs/PLUGIN-DEVELOPMENT.md`](../../../docs/PLUGIN-DEVELOPMENT.md) at the root of the repository for the seams. ## 1. What it does - **Query-aware search box** — a `ContentWidget` (`key = "search"`). A site manager drops `
` on any page or the master chrome; the widget renders a GET form that submits `?q=` to the site's results page (the `resultsPath` setting, default `/search`). It is **query-aware** (kernel `WidgetView.query()`): when the page carrying it is opened with a non-blank `q`, it renders the ranked results **inline below the box** (referencing the plugin's own `/__plugin/search/static/search.css`, which a site overrides to match its theme). So the results page is a **normal, editable tenant page**, not a plugin-owned surface. Its words come from `Messages.site` (the site's bundle first, then this plugin's) for the request locale. **Where results are listed (2.1.0):** each placement has a `results` setting (Site → Content widgets, `widgetSettings` in `plugin.yml`): `auto` (the default) lists them unless the box sits in the **master chrome** (`WidgetView.isChrome()`), so a header or footer box does not repeat the results page's list; `always` and `never` override that. Before 2.1.0 every box on a page opened with `?q=` listed the results. - **Result highlighting (2.1.0)** — the page a result opens highlights the words the search matched there and scrolls to the first visible one. How it travels: 1. The engine reports the matched words **as the page writes them** (`SearchHit.terms`, §2): the built-in engine the whole words around each match, `search-lucene` the surface forms its analyzer matched (stemming and typo tolerance included: `maestría` finds `maestrías`). 2. Each result link (inline results and the API's `link`) carries them in the fragment: `/mba#rw-hl=maestr%C3%ADas%20maestr%C3%ADa` (`HighlightMarker`). A fragment never reaches the server, so the target page is served and cached exactly as without it. 3. `SearchHighlightHead` (a `HeadContributor`) puts one `