基本上,我使用以下库得到了一些不合理的错误:
django==1.4.3
pyelasticsearch==0.6
simplejson==3.3.0
django-haystack==2.1.0我所犯的错误是:
index_queryset() got an unexpected keyword argument 'using'
我只要把这个移除,它就能在当地工作raise MissingDependency("The 'elasticsearch' backend requires the installation of 'pyelasticsearch'. Please refer to the documentation.")
这个错误发生时,弹搜索未能被导入。如果我任由它自然失败:from simplejson import JSONDecodeError
在python解释器中工作。这些错误似乎表明我没有使用pyelasticsearch和haystack的预期版本。我该怎么做才能让它正常运转?
发布于 2014-03-13 19:59:54
对于Elasticsearch,有两个不同的python库。我从弹力搜索转到了elasticsearch,它起了作用。
https://stackoverflow.com/questions/17953131
复制相似问题