如何配置我的 django 应用程序以将 haystack/whoosh 索引写入 S3 存储桶?
我找不到任何关于如何开始这个话题的信息。顺便说一句,我正在使用 Heroku 进行部署。
Django 存储看起来很有希望,但文档非常薄。不确定我是否可以将 WHOOSH_PATH 设置为存储对象?
看到 haystack whoosh 后端文件具有设置规则,例如:
if self.use_file_storage and not os.access(settings.HAYSTACK_WHOOSH_PATH, os.W_OK):
raise IOError("The path to your Whoosh index '%s' is not writable for the current user/group." % settings.HAYSTACK_WHOOSH_PATH)
第 90 行- 干草堆/后端/whoosh_backend.py
编辑:我放弃了嗖嗖声(而且听得比 Solr 慢);尽管这可能是常识,但 Websolr 是一种在 Heroku 部署的 Django 应用程序上进行搜索的非常简单的方法。