1
6 Comments

Do you want real-time site search for Ghost blogs?

I use ghost for my personal website but have been wanting an fast/easy search solution. So last weekend I hacked something together.

Here's a demo of the experience: https://www.loom.com/share/a3ff076182a5494c989c3992b5a39b7f or you can see a live demo at https://ajsharp.com.

I'm curious if anyone else out there is interested in adding real-time search to your blog or personal website.

Ghost is the first integration but I built it in such a way that I could fairly easily add support for other engines and static site generators.

Appreciate any feedback. Thanks.

on May 28, 2020
  1. 1

    Nice. What are you using under the hood to do the searching?

      1. 1

        Omg! That's what I was going to recommend if you were using something else! Would absolutely recommend you build this out as a plugin / extension for Ghost plugins.

        The devs are also super active.

        1. 1

          Cool, yea, I'm really liking meilisearch so far. I've been building it as a separate service that consumes ghost's webhooks and updates the index accordingly.

          1. 1

            Yeah that's definitely the way to go. So you will be maintaining the infrastructure powering the search yourself.

            One downside of meilisearch right now is that all words of the query must be present in the documents. I'm hoping they improve that. Or spin up a version of it where we can score documents based on relevancy using TFIDF etc.

            That's the missing piece for me.

            1. 1

              Ah didn't realize that. Yea, that's a bit of a bummer but in some ways solved by the real-time UX and overall performance. The project seems super early so I'm sure they'll add more production grade features like online backups and better authentication.