【发布时间】:2015-04-09 02:09:14
【问题描述】:
当我尝试运行以下使用 solrpy 的 python 代码时,
enter code here
import solr
s = solr.SolrConnection('http://example.org:8080/solr')
s.add(id=1, title='Lucene in Action', author=['hello','lucky'])
s.commit()
response = s.query('title:lucene')
for hit in response.results:
print hit['title']
我收到以下错误:
error: [Errno 10060] 连接尝试失败,因为连接方在一段时间后没有正确响应,或者连接失败,因为连接的主机没有响应
【问题讨论】:
标签: python-2.7 solr