Skip to content
Advertisement

Django Haystack – No module named ‘haystack.backends.elasticsearch5_backend’

Im following the install instructions as per the haystack documentation http://docs.haystacksearch.org/en/master/tutorial.html#installation and the search engine installation https://django-haystack.readthedocs.io/en/master/installing_search_engines.html#elasticsearch

I have installed Elasticsearch 5.1.16 which is listed as compatible and have put the settings in, the installation guide only has examples for Elasticsearch versions 1 and 2 but states that 5 is supported.

so I changed to version 5 in the settings

JavaScript

I have also gone through the repo and can see that version 5 is in there

enter image description here

but when I start my server I receive the error:

JavaScript

but then when I traverse the folder structure it hasn’t installed the version 5 files

JavaScript

and im using the same version as the git repo that has the 5 backend in it?

root@4c1197e002e8:/myapp/# pip freeze | grep hay django-haystack==2.8.1

EDIT: its also already installed into my installed apps:

JavaScript

anyone help me out whats missing here? Thanks

Advertisement

Answer

I just did a pip install git+https://github.com/django-haystack/django-haystack and now the version5 backend is in there.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement