Search for Ghost


#1

Currently Ghost doesn’t have a search functionality, and search functionality is expected out of the box from most of the users. At least the ones I encounter. I use the GhostHunter plugin for my projects but it is not ideal as it only supports English.

Any ideas and solutions are welcome.


Adding search functionality to default Ghost themes
#2

Best solution is generally Algolia, but it’s a bit manual and experimental atm:


GhostHunter Slow
#3

Thank you, @John, I will have a look.


#4

Another great integration for Ghost search would be Apache Solr, very powerful and open source. See e.g. Google chooses Solr for Public Service Website Search.

As a code example at GitHub, see the Solr integration for the NodeBB next-generation forums, wich are based on Node.js like Ghost.

There is also [Discussion] Solving Search in Ghost? · Issue #5321 · TryGhost/Ghost.


#5

What do you mean?
I use Ghosthunter, my blog is Italian, I have no problem, i really like it.

I noticed, however, that algolia generates a string in the url, example /?q=&idx=blog&p=0

I would like to have something with ghosthunter, but I can not understand how.
I remember that once it worked the same way.

EDIT: Algolia is not free? So bad


#6

@giacomosilli:
I think what @asta meant was that GhostHunter can only search for words with the “Latin” format (ex: English, French, Italian etc.) but for the moment it doesn’t work with words with the “Arabic” or “Asian” format for example.

Personally I have tried with Sino-Japanese characters and it’s not able to perform the search.


#7

On the other hand, Solr search (open source, mentioned above) supports a large number of languages, including Chinese, Japanese, Arabic, etc. Of course developing a Ghost-Solr integration would be also great for those international use cases.


#8

Didn’t realise search wasn’t built into Ghost until recently.
Quite surprising considering how the other parts worked beautifully but there’s no basic functionality like a search till now.
Guess I have to try GhostHunter for now.
Hope search makes it into the top feature list.


#9

I think part of the reason certain features don’t exist is there’s not enough expertise / an upstream requirement (for example, the original issue links to this upstream issue for the specific feature, coupled with the fact the core team is meticulous in implementing features that work well. Ghost is still quite young, so it will take time for it to have a lot of features. Also, from what I can tell, there’s a lot of thought in deciding what order to implement something, and there are lots of things to think about, like the tradeoff between adding features and maintaining performance