I want to share an NPM package I’ve developed for doing atomic updates to Algolia indices. It’s heavily inspired by @pixelastic’s
jekyll-algolia plugin, and is simply a layer on top of
The plugin allows you to:
- Update a single index from a JSON file on your machine through an NPM script or the command line
- Update one or more indices from JSON files on your machine using a custom JS script
- Update one or more indices from a JS array using a custom JS script
In short, it compares the records in your Algolia index against the local records you’re adding, and ensures you use the least amount of operations possible.
I published a blog post on Forestry.io on using this plugin with a Jekyll site,