当我尝试python manage.py rebuild_index
时,出现错误:
self.conn.bulk_index(self.index_name, 'modelresult', prepped_docs, id_field=ID)
AttributeError: 'ElasticSearch' object has no attribute 'bulk_index'
我找到了带有 pyelasticsearch.py 的链接https://github.com/toastdriven/pyelasticsearch/blob/master/pyelasticsearch.py #L424-469,我不知道它是哪个版本。反正bulk_index
那个代码里有,买我的pyelasticsearch.py 是没有的。有人有同样的经历吗?谢谢你的时间。
加:django-haystack 2.0.0.beta,pyelasticsearch 0.0.6