When I run python manage.py rebuild_index
, I get the following error:
Failed to delete Elasticsearch index: HTTPConnectionPool (host = '127.0.0.1', port = 9200): maximum number of attempts with url: / haystack exceeded (caused by: [Errno 111] Connection rejected)
My elastics search setting:
> HAYSTACK_CONNECTIONS = { > 'default': { > 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', > 'URL': 'http://127.0.0.1:9200/', > 'INDEX_NAME': 'haystack', > }, }
It is worth mentioning that I once indexed my data, and everything was fixed, but I do not know why, when I returned to the project and restarted the django project, it went wrong!
thanks for the help
source share