# A better search for Ghost - and it's not Algolia (and open source!)

**URL:** <https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651>\
**Category:** Share & showcase\
**Created:** [February 26, 2025, 9:37pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651 "2025-02-26T21:37:17Z")\
**Posts on this page:** 14\
**Page:** 2

<div class="post-metadata">

**Author:** ![satonotdead](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/satonotdead/32/33666_2.png) [@satonotdead](https://forum.ghost.org/u/satonotdead)\
**Post date:** [July 23, 2025, 3:01pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/21 "2025-07-23T15:01:33Z")

</div>

I’m running Ghost via default official supported method _(no Docker)_.

`localhost` is `127.0.0.1` and I can reach the Ghost API from both urls, including https as well.

`ghost-typesense` CLI is installed via `npm` no Docker.

It’s very strange to me, I’m open to experiment and any suggestion that could fix this issue.

---

<div class="post-metadata">

**Author:** ![ferradeira](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@ferradeira](https://forum.ghost.org/u/ferradeira)\
**Post date:** [August 13, 2025, 12:06pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/22 "2025-08-13T12:06:44Z")

</div>

I’m trying to configure typesense in Ghost 6.0.3

Everything was going well until until I get this error:

error: ‘Request failed with HTTP code 400 | Server said: Field `tags` must be an array of string.’

When run ghost-typesense sync --config ghost-typesense.config.json

Any idea?

Thanks

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [August 13, 2025, 5:01pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/23 "2025-08-13T17:01:17Z")

</div>

Thank you for reporting!

I just fixed that bug. You can run `npm install -g @magicpages/ghost-typesense-cli` to update the CLI. After that, `ghost-typesense sync --config ghost-typesense.config.json` should work again.

---

<div class="post-metadata">

**Author:** ![ferradeira](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@ferradeira](https://forum.ghost.org/u/ferradeira)\
**Post date:** [August 13, 2025, 7:32pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/24 "2025-08-13T19:32:06Z")

</div>

> [@jannis](#):
>
> npm install -g @magicpagesmagicpages/ghost-typesense-cli

Thanks Jannis. Now I get no error. But when truing to search the blog, I get the message: No results found for your search

What am I missing?

Also, need to keep the “version”: “v5.0”

If I change to v6.0 get this error:

Failed to initialize collection: [  
{  
“received”: “v6.0”,  
“code”: “invalid\_literal”,  
“expected”: “v5.0”,  
“path”: [  
“ghost”,  
“version”  
],  
“message”: “Invalid literal value, expected “v5.0””  
}  
]

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [August 13, 2025, 9:14pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/25 "2025-08-13T21:14:47Z")

</div>

> [@ferradeira](#):
>
> But when truing to search the blog, I get the message: No results found for your search

Can you share an URL to your site? Feel free to send me a DM.

> [@ferradeira](#):
>
> Also, need to keep the “version”: “v5.0”

Yes, the version should stay at v5.0 for now. `ts-ghost`, the Typescript library under the hood, has not been updated for Ghost 6 yet, but everything should work as expected.

---

<div class="post-metadata">

**Author:** ![ferradeira](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@ferradeira](https://forum.ghost.org/u/ferradeira)\
**Post date:** [August 14, 2025, 8:28am UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/26 "2025-08-14T08:28:22Z")

</div>

I’m in a test environment with no public access, but I’ll try to configure one and let you know.

Thanks

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [August 14, 2025, 8:40am UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/27 "2025-08-14T08:40:32Z")

</div>

In that case, I’d check if Typesense has all posts indexed and if the configuration in the code injection is working properly (e.g. what’s happening in the network requests to the Typesense server)

---

<div class="post-metadata">

**Author:** ![ferradeira](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@ferradeira](https://forum.ghost.org/u/ferradeira)\
**Post date:** [August 14, 2025, 9:36am UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/28 "2025-08-14T09:36:54Z")

</div>

I’m new to Typesense and Ghost, but as far as I noticed, when I ran ghost-typesense sync --config ghost-typesense.config.json , I saw a list of documents in the blog.

Typesense is on the same server as Ghost. The health check returns ok:

curl [http://localhost:8108/health](http://localhost:8108/health)  
{“ok”:true}

I sent you a DM

Thanks

---

<div class="post-metadata">

**Author:** ![ferradeira](https://avatars.discourse-cdn.com/v4/letter/f/cc9497/32.png) [@ferradeira](https://forum.ghost.org/u/ferradeira)\
**Post date:** [August 14, 2025, 2:09pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/29 "2025-08-14T14:09:52Z")

</div>

Another thing I notice is, no matter I choose theme: ‘light’, ‘dark’, or ‘system’

Nothing changes

---

<div class="post-metadata">

**Author:** ![dublininquirer](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@dublininquirer](https://forum.ghost.org/u/dublininquirer)\
**Post date:** [March 23, 2026, 9:54am UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/30 "2026-03-23T09:54:33Z")

</div>

Hi Jannis, I’ve set this up on my Ghost Pro website, it’s great, thanks! I did have a request from some users though: they’d like the search results to show what date each article/post is from, and the ability to make search results ordered by most recent first. Is that possible?

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [March 23, 2026, 10:07am UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/31 "2026-03-23T10:07:41Z")

</div>

The search is getting an overhaul this year:

> **[Advanced Search: Tags, Authors, Teasers, and Analytics](https://www.magicpages.co/roadmap/advanced-search-tags-authors-teasers-and-analytics/)**
>
> Magic Pages includes a Typesense-powered search out of the box. It's fast, it's relevant, and it's been one of the features customers love most.
> 
> Right now, this advanced search only finds posts and pages. That works for most cases, but it breaks...

The dates is definitely something I can keep in mind for that (though, no concrete release date, as it’s dependent on a few other Magic Pages internal requirements).

The search result ordering is something you can already set in your search config:

```auto
window. __MP_SEARCH_CONFIG__ = {
    // ...existing config                                                                                   
    typesenseSearchParams: {
        sort_by: 'published_at:desc'                                                                              
    }                                                            
};

```

This will sort results by newest first instead of the default relevance-based ordering. I’ve just updated the README to properly reflect that:

> **[ghost-typesense/packages/search-ui at main · magicpages/ghost-typesense](https://github.com/magicpages/ghost-typesense/tree/main/packages/search-ui#advanced-search-parameters)**
>
> Contribute to magicpages/ghost-typesense development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![dublininquirer](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@dublininquirer](https://forum.ghost.org/u/dublininquirer)\
**Post date:** [March 23, 2026, 2:18pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/32 "2026-03-23T14:18:27Z")

</div>

Thanks, I’ve made that change now – works great.

---

<div class="post-metadata">

**Author:** ![jannis](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jannis/32/39718_2.png) [@jannis](https://forum.ghost.org/u/jannis)\
**Post date:** [June 8, 2026, 1:25pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/33 "2026-06-08T13:25:05Z")

</div>

It’s been over a year since I first released the `ghost-typesense` package. Today I’ve release `v2.0.0`, which includes a ton of improvements, all based on the feedback of hundreds of publishers using the search on Magic Pages.

(The new features are not yet available on Magic Pages, since they still need some backend implementations, so if you’re a Magic Pages customer, this is a teaser of what’s to come in the next 1-2 weeks 😉 )

> **[Release v2.0.0 — Selectable layouts, semantic search, facets & more ·...](https://github.com/magicpages/ghost-typesense/releases/tag/v2.0.0)**
>
> 2.0.0 turns the search UI from a single modal into a configurable search platform: selectable layouts, semantic search, reader-facing facets, curated suggestions, opt-in analytics, members-only ind...

Here’s an overview of what’s new:

### Selectable UI layouts (`uiStyle`)

- **`modal`** _(default)_: now with rich result rows; supports `list` / `grid` templates.

- **`palette`** : command-style palette with grouped Posts / Tags / Authors and recent searches.

- **`discovery`** : two-pane explorer with a live preview pane and a facet rail.

Here are a couple of screenshots of the improved and new UI layouts:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/7/0/7088b2e0776452899e5fa80661d4c46f4bd6b3ca.jpeg)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/a/4/a46748dd46643154f933ae0c12d053e1e7954e92.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/6/e/6ef0b5333bfc20dc84d4362610723361875e2fd8.jpeg)

### Search

- **Semantic (vector-based) search** with keyword-favoring defaults (meaning, direct keyword-hits will still be preferred over pure semantic results based on the underlying vectors).
- **Curated + dynamic suggestions** : you can now add dynamic search suggestions from a backend of your choice. The search accepts an endpoint that provides these. Great, if you build something around the search – like Magic Pages.
- **Author + Tag search:** authors and tags are now fully searchable (tags were searchable already)
- **Members-only content indexing** : member-only content will be redacted (so no content is leaked), but discoverable. Great as lead magnets to your memberships.
- **Opt-in analytics** : the search can emit events on search/click/zero-results, sent to your own endpoint. Again, great if you build something around the search, like Magic Pages

Apart from these, there were a few quality-of-life improvements and bug fixes, which will make it easier to iterate of the tooling in the future.

Upgrades from the existing `v1.12.0` should be pretty straightforward, but a couple of features require re-indexing of the Typesense collection. Details see here: [Release v2.0.0 — Selectable layouts, semantic search, facets & more · magicpages/ghost-typesense · GitHub](https://github.com/magicpages/ghost-typesense/releases/tag/v2.0.0)

Looking forward to all of your feedback!

---

<div class="post-metadata">

**Author:** ![KBExit](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kbexit/32/38359_2.png) [@KBExit](https://forum.ghost.org/u/KBExit)\
**Post date:** [June 8, 2026, 9:48pm UTC](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651/34 "2026-06-08T21:48:30Z")

</div>

This is such an underrated feature!

[Previous page](https://forum.ghost.org/t/a-better-search-for-ghost-and-its-not-algolia-and-open-source/55651.md?page=1)
