如何启用对 {index_name}_tmp 文件的写入权限?
How to enable write permissions on {index_name}_tmp file?
我正在尝试按照 instructions here 将 Algolia 与我的 Jekyll 站点集成。说明说,
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 仪表板中,我的两个索引(常规索引和 _tmp)的 Admin API 键是相同的。如何授予 index_tmp 写入权限,以便在从命令行推送索引时不会收到此错误消息?
仔细检查您是否使用了管理员 API 密钥,因为它应该足以对任何索引进行写访问。
如果您不想使用您的管理员 API 密钥,您可以通过转到仪表板中的 API 密钥面板并单击 [=19] 专门为 Jekyll 创建一个新密钥=]:
确保 select 模态底部的正确 ACL!
我正在尝试按照 instructions here 将 Algolia 与我的 Jekyll 站点集成。说明说,
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 仪表板中,我的两个索引(常规索引和 _tmp)的 Admin API 键是相同的。如何授予 index_tmp 写入权限,以便在从命令行推送索引时不会收到此错误消息?
仔细检查您是否使用了管理员 API 密钥,因为它应该足以对任何索引进行写访问。
如果您不想使用您的管理员 API 密钥,您可以通过转到仪表板中的 API 密钥面板并单击 [=19] 专门为 Jekyll 创建一个新密钥=]:
确保 select 模态底部的正确 ACL!