我试图通过遵循instructions here将Algolia与我的Jekyll站点集成。该指示说,如何在{index_name} _tmp文件上启用写入权限?
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.
然而,说明书没有解释如何启用INDEX_NAME和_TMP写访问。其结果是,当我试图把我的指数,我得到这个错误:
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.
在我Algolia仪表盘,管理员API密钥是我的两个指标相同(常规one和_TMP)一个。如何给我的index_tmp写入权限,以便在从命令行推送我的索引时不会收到此错误消息?
谢谢。我创建了一个新的API密钥并授予它完全访问权限,并且工作正常。 –