【发布时间】:2012-08-11 09:33:00
【问题描述】:
当我尝试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
【问题讨论】:
-
@Efazati,怎么警告?
-
哦,我以前从未标记过
accept。我现在就这样做。
标签: django elasticsearch search-engine django-haystack