我試圖通過遵循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密鑰並授予它完全訪問權限,並且工作正常。 –