# Search for Ghost

**URL:** <https://forum.ghost.org/t/search-for-ghost/832>\
**Category:** Ideas\
**Tags:** 🚢-shipped\
**Created:** [April 10, 2018, 12:40pm UTC](https://forum.ghost.org/t/search-for-ghost/832 "2018-04-10T12:40:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![asta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/asta/32/147_2.png) [@asta](https://forum.ghost.org/u/asta)\
**Post date:** [April 10, 2018, 12:40pm UTC](https://forum.ghost.org/t/search-for-ghost/832/1 "2018-04-10T12:40:34Z")

</div>

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](https://github.com/jamalneufeld/ghostHunter) plugin for my projects but it is not ideal as it only supports English.

Any ideas and solutions are welcome.

---

<div class="post-metadata">

**Author:** ![John](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/john/32/29288_2.png) [@John](https://forum.ghost.org/u/John)\
**Post date:** [April 10, 2018, 3:12pm UTC](https://forum.ghost.org/t/search-for-ghost/832/2 "2018-04-10T15:12:08Z")

</div>

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

> **[GitHub - mlbrgl/ghost-algolia: Provides integration between Ghost (CMS) and...](https://github.com/mlbrgl/ghost-algolia)**
>
> Provides integration between Ghost (CMS) and Algolia (Search as a Service) - GitHub - mlbrgl/ghost-algolia: Provides integration between Ghost (CMS) and Algolia (Search as a Service)

---

<div class="post-metadata">

**Author:** ![asta](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/asta/32/147_2.png) [@asta](https://forum.ghost.org/u/asta)\
**Post date:** [April 12, 2018, 12:48pm UTC](https://forum.ghost.org/t/search-for-ghost/832/3 "2018-04-12T12:48:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Juan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/juan/32/25_2.png) [@Juan](https://forum.ghost.org/u/Juan)\
**Post date:** [May 17, 2018, 1:21pm UTC](https://forum.ghost.org/t/search-for-ghost/832/4 "2018-05-17T13:21:42Z")

</div>

Another great integration for Ghost search would be [Apache Solr](http://lucene.apache.org/solr/), very powerful and open source. See e.g. [Google chooses Solr for Public Service Website Search](https://lucidworks.com/2009/08/28/google-chooses-solr-for-public-service-website/).

As a code example at GitHub, see the [Solr integration](https://github.com/julianlam/nodebb-plugin-solr) 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](https://github.com/TryGhost/Ghost/issues/5321).

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [June 2, 2018, 6:32pm UTC](https://forum.ghost.org/t/search-for-ghost/832/5 "2018-06-02T18:32:21Z")

</div>

> [@asta](#):
>
> it only supports English.

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

---

<div class="post-metadata">

**Author:** ![gh0-0st](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/gh0-0st/32/542_2.png) [@gh0-0st](https://forum.ghost.org/u/gh0-0st)\
**Post date:** [June 5, 2018, 4:34am UTC](https://forum.ghost.org/t/search-for-ghost/832/6 "2018-06-05T04:34:02Z")

</div>

> [@giacomosilli](#):
>
> > [@asta](#):
> >
> > it only supports English.
> 
> What do you mean?  
> I use Ghosthunter, my blog is Italian, I have no problem, i really like it.  
> …

@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.

---

<div class="post-metadata">

**Author:** ![Juan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/juan/32/25_2.png) [@Juan](https://forum.ghost.org/u/Juan)\
**Post date:** [June 5, 2018, 12:21pm UTC](https://forum.ghost.org/t/search-for-ghost/832/7 "2018-06-05T12:21:05Z")

</div>

> [@gh0-0st](#):
>
> … 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](https://lucene.apache.org/solr/guide/7_3/language-analysis.html#language-specific-factories), including Chinese, Japanese, Arabic, etc. Of course developing a Ghost-Solr integration would be also great for those international use cases.

---

<div class="post-metadata">

**Author:** ![resting](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/resting/32/818_2.png) [@resting](https://forum.ghost.org/u/resting)\
**Post date:** [June 15, 2018, 2:16am UTC](https://forum.ghost.org/t/search-for-ghost/832/8 "2018-06-15T02:16:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [June 15, 2018, 2:40am UTC](https://forum.ghost.org/t/search-for-ghost/832/9 "2018-06-15T02:40:46Z")

</div>

> [@resting](#):
>
> Quite surprising considering how the other parts worked beautifully

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](https://github.com/TryGhost/Ghost/issues/5321) to [this upstream issue](https://github.com/tgriesser/knex/issues/203) 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

---

<div class="post-metadata">

**Author:** ![ravingDIODE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravingdiode/32/1663_2.png) [@ravingDIODE](https://forum.ghost.org/u/ravingDIODE)\
**Post date:** [October 18, 2018, 7:52am UTC](https://forum.ghost.org/t/search-for-ghost/832/10 "2018-10-18T07:52:59Z")

</div>

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.

I would love a search function built in.

---

<div class="post-metadata">

**Author:** ![diomed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/diomed/32/1678_2.png) [@diomed](https://forum.ghost.org/u/diomed)\
**Post date:** [October 18, 2018, 11:28am UTC](https://forum.ghost.org/t/search-for-ghost/832/11 "2018-10-18T11:28:18Z")

</div>

yes, it’s a minor inconvenience, but I think this plugin is pretty easy to add:

> [@Ghost-search: Our First Open Source Library for Ghost](https://forum.ghost.org/t/ghost-search-our-first-open-source-library-for-ghost/3145):
>
> Hi guys, A month ago I decided to work on something that everybody can benefit from. So I started an open source library called [ghost-search](https://github.com/HauntedThemes/ghost-search). After some work I’m proud to announce that I finally have a version that can be used. Why I started this library? As you probably know, there is already a search library for Ghost: [ghostHunter](https://github.com/jamalneufeld/ghostHunter). The library is good, it does its job, but I always felt that you could do a lot more with a search. Especially now with [Dynamic Routing](https://docs.ghost.org/docs/dynamic-routing). With ghost-search you ca…

despite that, built in search is something that most CMS’s ‘forget’ to build in.  
I’m still unsure how is this not a feature that every blog needs by default; aka  
what’s the reasoning to go without it.

It’s nice to see it’s **planned**

---

<div class="post-metadata">

**Author:** ![ravingDIODE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravingdiode/32/1663_2.png) [@ravingDIODE](https://forum.ghost.org/u/ravingDIODE)\
**Post date:** [October 18, 2018, 11:40am UTC](https://forum.ghost.org/t/search-for-ghost/832/12 "2018-10-18T11:40:57Z")

</div>

I agree. Thanks for the tip, will check it out.

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.

---

<div class="post-metadata">

**Author:** ![Omar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/omar/32/1751_2.png) [@Omar](https://forum.ghost.org/u/Omar)\
**Post date:** [October 21, 2018, 1:09pm UTC](https://forum.ghost.org/t/search-for-ghost/832/13 "2018-10-21T13:09:26Z")

</div>

ElasticSearch support would be dope in the future.

---

<div class="post-metadata">

**Author:** ![lengerrong](https://avatars.discourse-cdn.com/v4/letter/l/e480ec/32.png) [@lengerrong](https://forum.ghost.org/u/lengerrong)\
**Post date:** [November 12, 2018, 10:47am UTC](https://forum.ghost.org/t/search-for-ghost/832/14 "2018-11-12T10:47:18Z")

</div>

just an idea.

use sqlite3 as database for your ghost.  
then there will be a database file.  
open the database file via sqlite3.

$sqlite3 content/data/ghost-dev.db  
SQLite version 3.11.0 2016-02-15 17:29:24  
Enter “.help” for usage hints.  
sqlite\> .tables  
accesstokens migrations refreshtokens  
api\_keys migrations\_lock roles  
app\_fields mobiledoc\_revisions roles\_users  
app\_settings permissions sessions  
apps permissions\_apps settings  
brute permissions\_roles subscribers  
client\_trusted\_domains permissions\_users tags  
clients posts users  
integrations posts\_authors webhooks  
invites posts\_tags

As you can see, all posts definitely stored in the table named ‘posts’.

sqlite\> select \* from posts;  
id|uuid|title|slug|mobiledoc|html|comment\_id|plaintext|feature\_image|featured|page|status|locale|visibility|meta\_title|meta\_description|author\_id|created\_at|created\_by|updated\_at|updated\_by|published\_at|published\_by|custom\_excerpt|codeinjection\_head|codeinjection\_foot|og\_image|og\_title|og\_description|twitter\_image|twitter\_title|twitter\_description|custom\_template

Then we got the structure of the ‘posts’ table.  
As I tested, ‘slug’ is the route path of a recorded post.

let’s search posts contains ‘welcome’ as an example.  
sqlite\> select slug from posts where html like ‘%welcome%’;  
slug  
apps-integrations  
welcome

then we can check the real post in browser.  
[http://localhost:2368/welcome](http://localhost:2368/welcome)  
[http://localhost:2368/apps-integrations](http://localhost:2368/apps-integrations)

see, search things goes well in a shell bash.  
all we need to do write js codes to do above operations and display the result correctly in ghost core server module.

anyone who familiar with ghost developing work can have a try for that.  
any suggestion please guide.  
I would like to implement it at part time.  
Hope I can finish it soon.

---

<div class="post-metadata">

**Author:** ![ravingDIODE](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravingdiode/32/1663_2.png) [@ravingDIODE](https://forum.ghost.org/u/ravingDIODE)\
**Post date:** [December 5, 2018, 9:20am UTC](https://forum.ghost.org/t/search-for-ghost/832/15 "2018-12-05T09:20:30Z")

</div>

i just realised that the Ghost already has the search built in into the admin console, why not just enable that feature in the main theme too.

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex015/uploads/ghost2/original/2X/0/002267c03c6115b7648c1ceb819ff01fc10e3932.png)

---

<div class="post-metadata">

**Author:** ![staticpixel](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/staticpixel/32/2244_2.png) [@staticpixel](https://forum.ghost.org/u/staticpixel)\
**Post date:** [February 4, 2019, 9:18am UTC](https://forum.ghost.org/t/search-for-ghost/832/16 "2019-02-04T09:18:25Z")

</div>

Yes. I too agree. Basic post search should be provided by Ghost natively. Many themes from Ghost Marketplace like [Voice](https://voice.bironthemes.com/) 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!

---

<div class="post-metadata">

**Author:** ![borrodell](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/borrodell/32/2501_2.png) [@borrodell](https://forum.ghost.org/u/borrodell)\
**Post date:** [February 4, 2019, 10:52pm UTC](https://forum.ghost.org/t/search-for-ghost/832/17 "2019-02-04T22:52:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [February 5, 2019, 6:24am UTC](https://forum.ghost.org/t/search-for-ghost/832/18 "2019-02-05T06:24:08Z")

</div>

[docs.ghost.org](http://docs.ghost.org) is powered by Algolia so I assume it’s reliable to use.

---

<div class="post-metadata">

**Author:** ![vasilli](https://avatars.discourse-cdn.com/v4/letter/v/b5e925/32.png) [@vasilli](https://forum.ghost.org/u/vasilli)\
**Post date:** [February 5, 2019, 10:07am UTC](https://forum.ghost.org/t/search-for-ghost/832/19 "2019-02-05T10:07:04Z")

</div>

Hello,  
I also use Algolia, and I feel really good, this is the address if you want to see it

**Warning** I use adsense NOT profiled.

> **[Noviello.it](https://noviello.it)**
>
> Noviello.it è un blog dedicato agli sviluppatori e sistemisti. Guide, tutorial e script pronti all'uso per le principali distribuzioni Linux.

---

<div class="post-metadata">

**Author:** ![dsecareanu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dsecareanu/32/413_2.png) [@dsecareanu](https://forum.ghost.org/u/dsecareanu)\
**Post date:** [February 5, 2019, 2:41pm UTC](https://forum.ghost.org/t/search-for-ghost/832/20 "2019-02-05T14:41:06Z")

</div>

Can you provide more info on how you integrated Algolia search with Ghost?

There is a way here, but it seems outdated:

> **[GitHub - mlbrgl/ghost-algolia: Provides integration between Ghost (CMS) and...](https://github.com/mlbrgl/ghost-algolia)**
>
> Provides integration between Ghost (CMS) and Algolia (Search as a Service) - GitHub - mlbrgl/ghost-algolia: Provides integration between Ghost (CMS) and Algolia (Search as a Service)

I checked [https://docs.ghost.org/integrations/](https://docs.ghost.org/integrations/), but I saw no integration (maybe Ghost team can help with this?).

[Next page](https://forum.ghost.org/t/search-for-ghost/832.md?page=2)
