版本:django- haystack v2.0.0-beta pyelasticsearch(toastdriven) 0.0.5弹性搜索0.18.5我正在尝试将haystack与elasticsearch结合使用。我已经在Getting Started with Haystack中完成了步骤,它工作得很好。我可以使用python manage.py rebuild_index创建Note模型的索引,并在Note中成功检索该索引。现在我有两个索引文件夹,一个名为haystack,由haystack创建,另一个名为bolg,由curl -XPUT创建。但是haystack只能检索文件夹haystack中的索引。如何让haystack在blog中检索索引?如何使用haystack检索所有索引(其中一些可能是从其他机器复制的)?
发布于 2013-06-25 01:45:54
在新应用程序中添加一个不同的search_indexes.py。Haystack将自动选取该文件。当你运行rebuild_index的时候,它也会索引其他的应用程序。
https://stackoverflow.com/questions/11983510
复制相似问题