Change search engine in hugo for blogdown

I would like to change the type of search engine within a blog made with blogdown and with the following theme:
https://themes.gohugo.io/future-imperfect/

This theme currently uses Google site_search , which is great, but it takes users away from the site.

How can I do that?

This is more of a Hugo-level change than blogdown, so I definitely recommend checking out the various options Hugo recommends:

Having played around with lunr.js a little bit, I will tell you that it isn't particularly easy. Another option is changing from Google's site search to Google Custom Search Engine, which gives you a little bit more control over appearance (but I think the user still gets taken away from the site β€” not 100% sure tbh):

I found the Hugo Discourse community threads on search options to be really helpful:

If you decide to go the lunr.js route, this post is pretty thorough:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.