2016-12-09 15 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密鑰並授予它完全訪問權限,並且工作正常。 –