2016-12-09 17 views
0

我试图通过遵循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写入权限,以便在从命令行推送我的索引时不会收到此错误消息?

回答

0

仔细检查您是否使用您的管理API密钥,因为它应该足以具有对任何索引的写入权限。

如果你不想使用管理API密钥,您可以去您的API密钥面板的仪表板,并单击“新的API密钥”创建专门为杰奇一个新的密钥:

New API key dialog

确保您在模态底部选择正确的ACL!

+0

谢谢。我创建了一个新的API密钥并授予它完全访问权限,并且工作正常。 –