django、haystack和pelplasticsearch的最佳版本



基本上,我在使用这些库时会收到不合理的错误数量:

django==1.4.3
pyelasticsearch==0.6
simplejson==3.3.0
django-haystack==2.1.0

我得到的错误是:

  • 从python2.7/site packages/haystack/query.py:
    index_queryset() got an unexpected keyword argument 'using'
    我只是删除了这个,它在本地工作
  • /srv/www/projects/k-state-union/lib/haystack/backends/elasticsearch_backend.py:
    raise MissingDependency("The 'elasticsearch' backend requires the installation of 'pyelasticsearch'. Please refer to the documentation.")
    当导入肾盂肾炎搜索失败时,会出现此错误。如果我让它自然失败:
  • /srv/www/.virtualenvs/k-state-union/lib/python2.6/site packages/pelplasticsearch/client.py:
    from simplejson import JSONDecodeError
    它在python解释器中工作

这些错误似乎表明我没有使用预期版本的pyelasticsearchhaystack。我需要做些什么才能启动并运行它?

Elasticsearch有两个不同的python库。我从肾盂造影转为弹性造影,效果很好。

最新更新