When I run python manage.py rebuild_index
I get the following error:
Failed to clear Elasticsearch index: HTTPConnectionPool(host='127.0.0.1', port=9200): Max retries exceeded with url: /haystack (Caused by : [Errno 111] Connection refused)
My elasticsearch setting:
> HAYSTACK_CONNECTIONS = {
> 'default': {
> 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine',
> 'URL': 'http://127.0.0.1:9200/',
> 'INDEX_NAME': 'haystack',
> }, }
It is worth to mention that I have indexed my data once before and all things went correct but I dont know why when came back to project and restarted django project it went wrong!
Thanks in advence