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.
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.
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.
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
I am quite suprised that Ghost does not have a search button. It has an amazing subscribe process which is easy, but from the get-go, Ghost is supposed to make it easier to get blogging, yet many of the basic or necessary features one would expect on a blog is not there and needs to be added manually. I think most bloggers are not devs and thus Ghost does not make it easy to get the basic features going.
The issue that I have is this: I have a team of young students who wants to help me start blogging and writing for students and teenagers. I am the only one that can get something installed and set up but I am by no means a developer. So struggled to get Ghost up and running, now that it is done, great stuff! But then someone asked me: how do people search for specific questions etc that we will cover one a blog page just full of posts and I was like “oh yeah good question”.
I know Ghost has come a long way, but if they want more users to switch over to Ghost and focus more on writing…it seems you spend more time trying to get everything up and going and developing that writing.
Yes Ghost Pro solves many of that, but Ghost Pro does not have search either and it is expensive.
So I am glad to see it is planned, but would have thought it is a core feature from earlier on.
Yes. I too agree. Basic post search should be provided by Ghost natively. Many themes from Ghost Marketplace like Voice support search functionality but nothing beats native support. I guess with Ghost Content API now public, providing a basic search functionality shouldn’t be a hard task for the people at GHOST. Please guys, we need it!
Hi folks, I’m currently considering migrating from WP to Ghost, I publish a long running blog with 60,000+ articles and our readers use search a lot to discover our back catalogue. Is Algolia still experimental/unreliable?
I built search with Google Custom Search, but I used the API. I use React as a front end, and the Ghost Content API. I get search results for my domain from Google, and let React parse it. This way I can style the search results as I please. Check it out, https://www.theportlandpour.com/. I’ll post a case study on how I built it next week, but I’m pretty happy with the results.
I was planning to take the same approach for search on my new blog (Google custom search API). You did a great job with yours!
If you would be willing to share a case study or some quick tips that would great! The Google side is easy, but I haven’t explored yet how to get the additional info re. my posts. Are you using the API to get featured images, etc. for the posts / pages that Google returns?
If I can’t find a Search option on a Website, I still use the following within the URL line: “site http://example.tld searchword” (without the quotation marks of course) and after hitting Enter I mostly get what I want. :-)
I know it’s not an elegant Solution but it works. Maybe it would be possible to pack this “Function” into a little Script or behind a Link on the actual Website to make it work like a good Search Function?!
I have built a solution which we use on our blog at ciserro.com/blog, which i have shared as a gist. since we don’t use the frontend of ghost in our webapp (written in React), integrating this with your ghost installation is up to you, but this is a solution anyone can use with self hosting.
It uses elastic-lunr.js and @tryghost/content-api to provide a search api for ghost. it also provides an Archive feature which allows you to browse posts by month/year. This module exports 3 functions start,search, and archive. search and archive should be setup as express routes, while start should be used to start the search index. you will need to add your ghost credentials in the file before starting it. license is MIT, free to all to use and modify, no attribution needed.
Thanks! I haven’t forgotten about this. I’m finishing the case study this week, but adding some detail. I’ll post the link here when it’s done, but, tldr: set up Google Custom Search, use the REST API to make the request, when you get the response, parse the links for slugs. With an array of slugs, request the content from the Ghost Content API, and display as you see fit. Also, don’t forget to update state with the search page number. IIRC, Google only returns 10 links per request.