I'm trying to integrate Algolia with my Jekyll site by following the instructions here. The instructions say,
Note that your API key should have write access to both the index_name and _tmp suffixed version of it (eg. your_index_name and your_index_name_tmp) in the previous example). This is due to the way we do atomic pushes by pushing to a temporary index and then renaming it.
However, the instructions don't explain how to enable write access to index_name and _tmp. As a result, when I try to push my index, I get this error:
Algolia Error: API key cannot write to
{index_name}_tmp
index In order to do atomic pushes to your Algolia index, the plugin first pushes to a temporary index (suffixed with_tmp
), then renames it.You see this error because the plugin wasn't able to push to that
{index_name}_tmp
index, with the API key you provided.Make sure the API key you're using has rights to write on both your index and its
{index_name}_tmp
suffixed version.
In my Algolia Dashboard, the Admin API key is the same for both of my indexes (the regular one and the _tmp) one. How do I give my index_tmp write access so that I don't get this error message when pushing my index from the command line?