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

# Site search

> Fast, typo-tolerant site search for your Ghost posts, hosted and managed by Outpost.

> [!NOTE]
>
> Outpost hosts and manages site search, which runs on Typesense. There is no bring-your-own-server option, and there are no server credentials to enter on your side.

Site search runs on [Typesense](https://typesense.org), an open-source, typo-tolerant search engine. Outpost runs the Typesense cluster, indexes your Ghost posts into it, and exposes the search results to your theme. It's the recommended search for all new publications.

## How indexing works

Outpost keeps your search index in sync with Ghost automatically. You set up one or more **collections** per site: each collection is a separate searchable index that pulls in posts, pages, authors, and tags filtered by the tag rules you choose. Your data lives in its own space and isn't visible to other publications on the cluster.

### Collections and how to use them

For most sites, **one collection that searches everything is enough**. Visitors type a query, see results across all your content, done.

If you publish a lot of distinct content types (posts plus podcast episodes plus videos, for example), you can add a separate collection for each one. Each collection becomes a **tab in the search popup**, and the label on the tab is the collection's **Public name** (so "Articles", "Podcasts", "Videos"). Visitors can stay in the default tab to search everything, or click a specific tab to narrow to just that content type.

> [!NOTE]
>
> Tabs only appear once you have two or more collections. With a single collection, the search popup hides the tab bar, so visitors never see the Public name at all. The one-click setup creates one collection named "Posts", and that name stays inside your settings.

Each collection has its own tag rules, so a "Podcasts" collection might include only posts tagged `podcast`, while an "Articles" collection excludes that tag. You can also control whether pages, author profiles, and tag pages are indexed into each collection.

> [!NOTE]
>
> On phones, the search popup opens as a full-screen overlay with a sticky search bar at the top, so it stays visible as visitors scroll. When you have multiple collections, the tabs become swipeable so visitors can move between content types with a flick.

### What gets indexed

For each post or page, Outpost stores the title, the body content (with formatting stripped), the excerpt, the slug, the feature image, the URL, the authors, and the tags. Authors and tags can be indexed as their own results too, so a search for an author name can surface that author's page alongside their posts. An author or tag result matches on the name only, so a word in an author's bio or a tag's description doesn't bring it up, and these results show no date.

What stays out of search:

* **Email-only posts, and anything that isn't published in Ghost.** Drafts and scheduled posts are never indexed.
* **Anything tagged `#hide` or `#no-index`.** Every new collection starts with those two tags in **Exclude posts tagged** and **Exclude pages tagged**, so tagging a post or a page with either one in Ghost keeps it out of search. You can change those lists on the collection at any time.
* **Posts whose tags don't match the collection's rules.** A collection set to **Choose by tag** takes only the posts with one of its listed tags.
* **Authors and tags that aren't on any published post**, and internal tags (any tag whose name starts with `#`) when a collection indexes tag pages. Drafts and email-only posts don't count, so an author whose only post was sent by email stays out of search. Outpost removes an author or tag as soon as its last published post is unpublished, deleted or untagged. If one still shows up in results, click **Re-index** on the collection.

Paid posts are a different case: they are included by default. See [Paid posts in search](#paid-posts-in-search).

### Paid posts in search

Paid (members-only) posts are searchable by default. In the collection editor, the checkbox **Include paid (members-only) posts** is ticked both for the one-click setup and for every collection you create yourself.

What that means for your readers:

* A paid post can be found by anyone, signed in or not. The search matches on the post's title, tags, authors, excerpt, and full body text.
* The result shows the title, the excerpt, and whichever details you have turned on for that collection. The excerpt is the post's custom excerpt in Ghost, or the first 30 words of the post when there is no custom excerpt.
* The full body of the post is not sent to the reader's browser. It is matched against, but the words shown in the result come from the title and the excerpt.

> [!WARNING]
>
> If you gate posts and don't want their titles and opening words surfaced to everyone, open the collection on the **Collections** tab, untick **Include paid (members-only) posts**, and save. Any post whose Ghost visibility is not public is then left out of the index, both when the index is rebuilt and when a post changes in Ghost. Saving that change starts a rebuild, so plan for the [re-index](#re-indexing) it triggers.

### When indexing happens

Outpost re-indexes automatically whenever something changes in Ghost:

* **A post or page is published, updated, or unpublished**: the document is added, refreshed, or removed in every collection it belongs to.
* **A tag or author is edited**: the matching tag or author entry is updated in collections that include them.
* **A post or page is deleted**: it's removed from search.

These updates run in the background within seconds of the change in Ghost. There's no manual step to keep search fresh.

### Full re-index

A full re-index runs in three situations:

1. **When search is first turned on**: every collection is built from scratch.
2. **When you click Re-index on a collection**: that one collection is rebuilt.
3. **When you save a change to what a collection includes**: every collection on the site is rebuilt. Changes to how results look are saved without a rebuild.

A re-index pulls every matching post and page from your Ghost site in batches and rebuilds from scratch. Readers keep getting the current results while it runs, and you'll get an email when it finishes. Use it after a bulk import, a large tag cleanup, or any time a collection looks out of sync.

## How results are ranked

Searches look at the title, tags, authors, body content, and excerpt of each document, with typo tolerance built in. A word joined to another by a hyphen also counts on its own, so a search for "editor" finds "editor-in-chief". Internal tags (those starting with `#`) are never matched.

Posts and pages are ordered by **Most Relevant**:

* Tag boosts count first, if you have set any. See [How the Boost function works](#how-the-boost-function-works).
* After that, a match in the title counts most, followed by a match in the authors, the tags, the excerpt, and finally the article text. A post with the search term in its title ranks above one that only mentions it in passing.
* Posts that match equally well are ordered newest first.

If you turn on the ordering dropdown, readers can switch between **Most Relevant**, **Newest First**, and **Oldest First**.

### Author and tag results

When a collection includes author pages or tag pages, matching authors and tags appear above the posts: up to 3 authors, then up to 3 tags. They appear on the first page of results only, and page numbers and the ordering dropdown apply only to posts and pages. A search that matches an author but no posts still shows the author.

To change how many appear, or to leave either type out, see [Default display](#default-display).

## How the Boost function works

By default, search results are ordered by relevance, as described in [How results are ranked](#how-results-are-ranked). **Boost** lets you give certain tags extra weight. Depending on how your site is set up, you can use this to give preference to your podcast's main page over particular episodes, or to have a particular topic get a higher ranking.

### Configuring boosts

Open **Site search** in the left navigation, open the collection you want to tune from the **Collections** tab, and in its **Ranking** section click **Boost results by tag**. Add a row for each tag you want to weight, pick the tag from the dropdown, and set a boost amount between **0 and 10**. Any tag you don't list stays at the default of 0.

> *Example: if a regular post and a podcast post are scoring about the same on relevance, give the `podcast` tag a boost of 5 to push podcast results to the top.*

### How boost values are applied

Each post's boost score is the **sum of the boost amounts on its tags**. A post tagged with both `podcast` (boost 5) and `featured` (boost 3) ends up with a score of 8. Posts with higher boost scores rank above lower ones. Among posts with the same score, the better match ranks first, then the newer post.

Boost is calculated when the post is indexed, not when a visitor searches. That means **after changing a boost value, click Re-index on the collection** so the new weights are applied to every existing post. Posts edited in Ghost after the change will pick up the new values on their own.

If you haven't configured any boosts, results follow the default relevance ordering.

## How results look

Two layers control how each search result is displayed: a site-wide **Default display** that applies everywhere, and optional per-collection overrides for any collection that should look different.

### Default display

On the **Default display** tab, set how results appear across every collection:

* **Match my CTA design**: take the corner rounding from your CTA design defaults. Uncheck it to set the **Border radius** yourself. The accent color and font always come from your Ghost site, whether this is checked or not.
* **Color mode**: Light, Dark, or Auto. Auto reads your Ghost theme's background color and picks the light or dark palette to match it.
* **Border radius**: how rounded the search panel, the search box, and the collection tabs are. Only shown when **Match my CTA design** is unchecked.
* **Search title**, **Search placeholder**, and **No-results message**: the wording visitors see in the search box.
* **Result details**: choose whether results show the featured image, a matching snippet, the primary author, and the primary tag, and whether to hide internal tags (those starting with `#`). Internal tags are hidden by default: they're an editorial tool, not something readers need to see.
* **Default image when a result has none** (appears when **Show featured images** is on): upload one image to stand in for results without a featured image. Leave it empty and those results fall back to your site logo. This image applies to every collection unless a collection sets its own.
* **Most authors to show** and **Most tags to show**: how many matching authors and tags appear above the posts, from 0 to 10. The default is 3 for each, and 0 leaves that type out of search results.
* **Label for author results** and **Label for tag results**: the label on those results, up to 40 characters. The defaults are "Author" and "Topic", and a blank label uses the default.
* **Page numbers on each side of the current page**, with a separate setting for phones: from 0 to 3. The defaults are 3, and 1 on phones. A smaller number keeps the page links on one line on a narrow screen.

Click **Save search design** to apply.

The colors themselves are not set here. Backgrounds and text follow the light or dark palette, and the accent used for matched terms, result labels, the primary tag, and the selected collection tab follows your Ghost accent color. If your accent color is too light or too dark to read against the popup background, Outpost adjusts its shade on result labels and the primary tag so the text stays readable. The selected tab gets white or near-black text, whichever reads better on your accent. The popup uses the main font Outpost detected on your site. If Outpost did not detect one, the popup uses a standard system font. To change any of these, see [Styling the Search Popup](https://documentation.outpost.pub/developers/search-styling.md).

### Per-collection display

Every collection follows your Default display settings unless you override it. To make one collection look different, open it from the **Collections** tab, find its **Display** section, and click **Customize display for this collection**. The overrides apply to that collection only and cover the same options as Default display, including its own **Default image when a result has none**, which falls back to the site-wide image (and then your site logo) when empty. The exception is the author and tag limits, their labels, and the page number settings. These always apply to the whole site.

The Display section also has a **Never show these tags** list: enter tags you don't want shown in a result's metadata, even when a post has them. Wildcards work, so `#megaphone_*` hides every tag that starts with `#megaphone_`.

### Result labels

In a collection's **Result labels** section, turn on **Show a label on each result** to add a small badge to results based on their tags or URL: for example, label anything tagged `#episode` as **Video**. Add a rule for each label, then set the label for **Everything else** to cover results that don't match a rule. Labels are specific to the collection you set them on.

Author and tag results always show a label. They use **Label for author results** and **Label for tag results** from Default display, unless one of the collection's rules matches them.

## Synonyms

Synonyms make words find each other in search, so a reader who searches for "tyre" also finds posts that say "tire". Add them on the **Synonyms** tab and click **Save synonyms**. They apply to every collection as soon as you save, with no re-index, and they stay in place when a collection is re-indexed.

Put one rule on each line:

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
tyre, tire
bike, bicycle
pc => computer, laptop
```

* **A group of words**, separated by commas: a search for any of them finds all of them.
* **A one-way rule**, written as one word, then `=>`, then its synonyms: a search for the word on the left also finds the words on the right, but not the other way around.
* **A line that starts with `#`** is ignored, so you can use it for notes.

Capital letters make no difference. You can add up to 500 lines, not counting blank lines and notes, and each line can be up to 500 characters. A line that doesn't make a rule, such as a single word, is ignored without a warning.

**Add common UK and US spellings** adds pairs such as `colour, color` and `organise, organize` to the list, and skips any you already have. It leaves out some pairs where a spelling is also a different common word, such as "cheque" and "check". The pairs apply once you click **Save synonyms**.

Keep groups narrow, because a broad group changes the results for every search that uses one of its words.

## Site search vs. Algolia

| | Site search | Algolia |
| - | - | - |
| Hosting | Outpost-hosted | Algolia-hosted (BYO Algolia account) |
| Cost to publisher | Included | Algolia's published plans |
| Indexing | Automatic on every Ghost change | Automatic on every Ghost change |
| Recommended for | New publications | Publications with an existing Algolia account |

## Setup

Site search is included in the Voyager and Luna plans. Open **Site search** in the left navigation, just below **Posts**, to set it up and manage it. On Space Station, the page shows which plan you need instead of the settings.

The page is organized into four tabs, and it opens on the first one:

* **Collections**: create and tune each searchable index, including its tag rules, per-collection display, result labels, and ranking.
* **Default display**: set how results look across your whole site, including a fallback image for results that have none.
* **Placement**: choose what opens search on your site and how results are shown.
* **Synonyms**: list words that should find each other in search, such as UK and US spellings.

There's nothing to configure on the Typesense side, because Outpost runs the cluster.

> [!NOTE]
>
> Everything for site search, from turning it on to collections, display, placement, synonyms and re-indexing, is on the **Site search** page.

### Turning search on with the defaults

Before search is connected, the **Collections** tab leads with a panel headed **Recommended: start with the defaults**. **Turn on with defaults** is the normal route: one click connects search and sets up everything a standard Ghost site needs.

The defaults it applies:

* One collection with the Public name **Posts**, set to **All posts**, with **Include paid (members-only) posts** turned on and `#hide` and `#no-index` in **Exclude posts tagged**.
* Author pages and tag pages included, so readers can find a writer or a topic. Pages are left out.
* No tag boosts.
* **Search trigger** set to **Ghost's default search button** and **Show results as** set to **Popup**, so search opens from the button already in your theme.
* Results showing the featured image, the author, the matching text, an excerpt, and one tag, with internal (`#`-prefixed) tags hidden. The date, the ordering dropdown, and result labels are off.

Search is switched on as soon as the setup finishes. Results appear once Outpost has finished indexing your posts, and Outpost emails you when that is done. Your Ghost site has to be connected before search can be turned on, because search follows your Ghost content as it changes.

Nothing else is required. When you want to go further, change the wording on **Default display**, add more collections, add tag boosts, or change **Placement**. To change the colors, see [Styling the Search Popup](https://documentation.outpost.pub/developers/search-styling.md).

> [!WARNING]
>
> The default setup includes your paid posts, so anyone can find a members-only post in search and read its excerpt. If that isn't what you want, see [Paid posts in search](#paid-posts-in-search).

### Turning search off

To turn search off, open the **Collections** tab and click **Turn off site search** below the search settings. Readers can no longer use search, and your collections and settings are kept for when you turn it back on.

### Setting up collections yourself

If you'd rather choose everything up front, use **Set up manually** on the same panel. It opens the collection editor with the same starting values, so you can set the **Public name**, decide what the collection includes, and adjust the tag rules before anything is indexed.

Once search is connected, that panel is replaced by the **New collection** button, which is how you add every collection after the first. A new collection starts with the same values, author pages and tag pages included.

Sites that turned on search before October 26, 2026 keep their saved settings. To add author pages or tag pages to an existing collection, open it from the **Collections** tab and change what it includes.

### Choosing how search opens

The **Placement** tab has two controls. Both arrive already set to the standard Ghost arrangement, a popup opened by your theme's own search button, so most sites never need to change them.

**Show results as** sets where results appear:

* **Popup**: results open in an overlay when a visitor opens search. This is the default.
* **Embedded in a container**: show the search box and results on the page itself, for example on a dedicated `/search` page. A **Container selector** field appears; enter a CSS selector for the element search should appear in, such as `#search`. Once you enter a selector, site search appears only on pages that have that element, and your theme's own search button keeps opening Ghost's built-in search. **Search trigger** is hidden, because nothing needs to open site search.

**Search trigger** sets what a visitor clicks to open search. It appears only when **Show results as** is set to **Popup**. The choices are:

* **Ghost's default search button**: the right choice for most publishers. Outpost takes over the search button already in your Ghost theme, so a click opens the search popup and Ghost's own search doesn't open as well. No theme edits needed.
* **Custom element**: for a theme with a non-standard search trigger, or to open search from a specific button, link, or icon. A **Trigger selector** field appears; enter a CSS selector such as `#search-btn`, `.site-header .search`, or `[data-open-search]`. Every matching element opens search when clicked. Ghost's own search buttons that don't match the selector keep opening Ghost's search.

With either choice, visitors can also press Cmd+K on a Mac, or Ctrl+K on Windows and Linux, to open search from anywhere on a page that has a search trigger.

A few details for theme developers:

* Only a plain click opens search. A click with Cmd, Ctrl, Shift, or Alt held behaves as it normally would, so a search link can still open in a new tab.
* Outpost picks up the search buttons that are on the page when it loads. A button your theme adds later, for example inside a menu built by a script, doesn't open search.
* Outpost replaces each search button with its own copy, so theme styles or scripts aimed at the original button don't apply to it. See [Styling the Search Popup](https://documentation.outpost.pub/developers/search-styling.md#the-search-button-is-replaced).

If you choose **Embedded in a container** but leave **Container selector** empty, search still opens in a popup, so **Search trigger** stays on screen until you enter a selector. While **Search trigger** is hidden, Outpost keeps your choice, and it's still set when you switch back to **Popup**.

With **Embedded in a container**, the **Search trigger** setting isn't used, and your theme's search button keeps opening Ghost's own search.

Click **Save placement** to apply.

## Re-indexing

Index updates run automatically when Ghost content changes. If a collection looks out of sync (for example, after a bulk import, a large tag re-organization, or a change to boost settings), open the collection on the **Site search** page and click **Re-index**. The button appears once the collection has been saved. The re-index runs in the background and emails you when it completes.

Saving a collection can also start a rebuild. When you change what a collection includes, Outpost asks first, in a dialog headed **Save and re-index?** with a **Re-index and save** button. That rebuild covers every collection on the site, not only the one you edited, so treat it as a full rebuild if you run more than one collection. Changes that only affect how results look are saved without it.

Search keeps working during a re-index. Outpost builds the new index alongside the current one, readers keep getting results from the current index, and search switches over only once the new index is complete. Posts you publish or edit in Ghost while the rebuild runs go into both. If a rebuild can't finish, search stays on the current index and you won't get the completion email; click **Re-index** again, or email **[support@outpost.pub](mailto:support@outpost.pub)** if it keeps happening.

## Related features

> [card] [Algolia Integration](https://documentation.outpost.pub/integrations/algolia.md)
>
> Alternative search integration for publications already on Algolia.

> [card] [Ghost Integration](https://documentation.outpost.pub/integrations/ghost.md)
>
> Ghost is the source of post content that gets indexed for search.

> [card] [Styling the Search Popup](https://documentation.outpost.pub/developers/search-styling.md)
>
> Match the popup to your theme with CSS variables and class hooks.

## FAQ

> [accordion] How do I turn search on?
>
> Open **Site search** in the left navigation. The setup is one click: on the **Collections** tab, the panel headed **Recommended: start with the defaults** has a **Turn on with defaults** button that creates a single **Posts** collection covering all your posts, opens search as a popup from your theme's existing search button, and includes author pages and tag pages but not pages. **Set up manually** opens the collection editor instead, for choosing all of that yourself. Your Ghost site has to be connected before search can be turned on.

> [accordion] Do I need my own Typesense account?
>
> No. Outpost runs the Typesense cluster and includes it as part of your subscription.

> [accordion] Can I bring my own Typesense server?
>
> Not currently. Search is delivered through Outpost's hosted Typesense cluster.

> [accordion] Do I need to edit my Ghost theme to add search?
>
> No, not for most setups. **Search trigger** is already set to **Ghost's default search button**, so Outpost takes over the search button in your theme: a click opens the search popup, and Ghost's own search doesn't open as well. Cmd+K on a Mac, or Ctrl+K on Windows and Linux, opens it too. Change the setting on the **Placement** tab only if your theme uses a non-standard search trigger, using the **Custom element** option.

> [accordion] Are my paid posts findable in search?
>
> Yes, by default. **Include paid (members-only) posts** is on for the one-click setup and for every new collection, so anyone can find a members-only post in search and read its excerpt, which is the custom excerpt from Ghost or the first 30 words of the post. The full body of the post is not sent to the reader's browser. To leave paid posts out, open the collection on the **Collections** tab, untick **Include paid (members-only) posts**, and save. Saving that change starts a rebuild of the index.

> [accordion] When should I add a second collection?
>
> Add another collection when you publish a distinct content type that visitors might want to search on its own: podcast episodes, video posts, a separate research library. Each collection becomes a tab in the search popup, so visitors can search everything by default or narrow to one type. For most sites, a single collection is the right answer.

> [accordion] Will visitors see a tab for my collection?
>
> Only when you have two or more collections. The search popup hides the tab bar while there is a single collection, so the default **Posts** collection created by the one-click setup is never labelled on screen.

> [accordion] How do I trigger a full re-index?
>
> Re-indexing is automatic on Ghost changes. For a full rebuild of a single collection, use the **Re-index** button on the collection on the **Site search** page.

> [accordion] Will visitors see broken search while a re-index runs?
>
> No. Readers keep getting results from the current index while the new one is built, and search switches over once the new index is complete. If the rebuild can't finish, search stays as it was and you won't get the completion email.

> [accordion] I changed a boost value but search results haven't moved.
>
> Boost is calculated when a post is indexed, not when a visitor searches. After changing a tag's boost amount, click **Re-index** on the collection so the new weights are applied to every existing post. Posts you edit in Ghost after the change will pick up the new values on their own.

> [accordion] What's the maximum boost value?
>
> Each tag can be boosted by a whole number from 0 to 10. A post's overall boost is the sum of all its matching tag boosts, so multiple boosted tags stack.

> [accordion] How do I make a search for one spelling find another?
>
> Add both spellings to a line on the **Synonyms** tab, separated by a comma, such as `tyre, tire`, and click **Save synonyms**. The change applies right away, with no re-index. **Add common UK and US spellings** adds a starter list. See [Synonyms](#synonyms).

> [accordion] What if I want to use Algolia instead?
>
> See the [Algolia Integration](https://documentation.outpost.pub/integrations/algolia.md) page. Site search is recommended for new publications; Algolia fits publications that already have an Algolia account in place.


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