MapperParsingException on doing rebuild_index in django-haystack with elasticsearch

只谈情不闲聊 提交于 2019-12-05 21:41:22
alecxe

There is a relevant django-haystack issue to remove the boost parameter which is no longer supported in ElasticSearch >= 2:

Before that change, django-haystack was using the _boost parameter in the mapping for the ElasticSearch backend. The change was made to the master branch. You can do things at this moment:

  • install the development version of django-haystack directly from github:

    pip install -e git+https://github.com/toastdriven/django-haystack.git@master#egg=django-haystack
    
  • downgrade ElasticSearch to the latest stable version before the upgrade to the 2nd, I think it is 1.7.3

Also, here is the relevant discussion:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!