Python 重建django haystack索引时无法连接到solr服务器
我得到以下错误: 无法将文档添加到Solr:无法连接到位于的服务器 ,你确定吗 那个URL是正确的吗?在浏览器中检查它可能会有所帮助: HTTPConnectionPoolhost='example.com',端口=80:超过最大重试次数 url为:/:8983/solr/update/?commit=true,原因是:[Errno 111]连接被拒绝 我可以点击commit=true地址返回以下xml: 我可以毫无问题地访问solr管理员: 我已经打开了我的安全组中的所有端口,特别是8983和80 这是我的设置条目:Python 重建django haystack索引时无法连接到solr服务器,python,django,solr,django-haystack,Python,Django,Solr,Django Haystack,我得到以下错误: 无法将文档添加到Solr:无法连接到位于的服务器 ,你确定吗 那个URL是正确的吗?在浏览器中检查它可能会有所帮助: HTTPConnectionPoolhost='example.com',端口=80:超过最大重试次数 url为:/:8983/solr/update/?commit=true,原因是:[Errno 111]连接被拒绝 我可以点击commit=true地址返回以下xml: 我可以毫无问题地访问solr管理员: 我已经打开了我的安全组中的所有端口,特别是898
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.solr_backend.SolrEngine',
'URL': 'http://example.com/:8983/solr',
'TIMEOUT': 60 * 5,
},
}
为什么我不能连接以重建索引?问题在于:
'URL': 'http://example.com/:8983/solr',
应该是这样的:
'URL': 'http://example.com:8983/solr',