我剛剛將elasticsearch升級到5.0.0。 我有django 1.7.7和django-haystack 2.4.1。如何在django設置中爲elasticsearch 5.0配置haystack?
在elasticsearch 5.0.0中,出於安全目的添加了授權標頭。
因此而使得連接通過Django的到elasticsearch,它拋出錯誤elasticsearch.exceptions.AuthenticationException:TransportError(401,u'security_exception')
我們在哪裏可以在草堆配置中添加授權領域?
你解決了嗎?因爲我有同樣的錯誤(我使用的是elasticsearch5.0.0,django 1.10,django-haystack2.5.1) –