HUGO

Search your Hugo site with Algolia-Indexer

I wrote a small command line tool to send your site index to Algolia for site search.

To use algolia-indexer, create a custom JSON index list file like this and then run algolia-indexer -src http://example.com/index.json after each deploy. Now you can either use Algolia’s JavaScript or write your own for an easy, dynamic site search.

The advantage of this approach versus using Algolia’s own static site search service is that one, it’s free, and two, it lets you list your site’s page specific params, instead of blindly indexing the whole page free form.

Cheers. Contact me if you have questions about how to use it.

1 Like