LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.86k stars 484 forks source link

*Free* search feature #256

Closed kousha-icracked closed 8 years ago

kousha-icracked commented 8 years ago

I know that we can use SwiftType for search feature. But it costs $250/month! Is there a free alternative?

LouisBarranqueiro commented 8 years ago

Heyn man,

AHAHAH, 250$ :D Didn't notice that they have updated their pricing plans. :D When I integrated Swiftype to the project, there was a free plan. Algolia seems to do the same thing, i'm gonna work on it to check if I can integrate it. Thank you :)

kakawait commented 8 years ago

When I searched an alternative to implement inside the theme fork I found Algolia promising. But you must generate your index by yourself and does it will be free for ever?

There are also easy way: Google CSE, DuckDuckGo search box or Yandex search but hard to customize/style.

Or homemade by using lunrjs and creating index during build phase (using Grunt?)

LouisBarranqueiro commented 8 years ago

Hey man, thank you for this alternative. I checked them and I agree with your remarks. Algolia seems to be the best alternative : simple and fast to implement. Algolia is working with many open source projects to increase their visibility so yeah I think that they will always give a free plan.

prajaybasu commented 8 years ago

Any progress/update on this ?

LouisBarranqueiro commented 8 years ago

@prajaybasu I'm gonna work on it today, maybe a release tomorrow or in some days

LouisBarranqueiro commented 8 years ago

I implemented the NPM module to index post on Algolia : hexo-algoliasearch. For the moment, the plugin only clear the idnex and re-import all posts. Later, I will be better to only sync modified posts. I also implement the necessary on the theme to search and display results, it need some css yet and it will be good :)

LouisBarranqueiro commented 8 years ago

Check it live on add-search-box branch

Any other suggestions or improvements before release?

dicaswlzre

brenotx commented 8 years ago

Hi, nice to know we are going to get this new release soon. I tried to implement a search on my page following this tutorial: http://jeffworkshop.com/2016/01/01/hexo-Local-Search/ but for some reason it doesn't work.

LouisBarranqueiro commented 8 years ago

v1.9.0 is here - with a new search module working with Algolia Search API Read Tips before update :)