0
我正尝试使用SolrNet从webservice搜索Solr服务器。我设立在Global.asax连接:Startup.Init<ApartmentDoc>("http://192.168.0.100:8080/solr/");
SolrNet错误 - 无法从传输连接读取数据:连接已关闭
我想通过查询服务器在类文件:
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<ApartmentDoc>>();
var apartments = solr.Query(SolrQuery.All, new QueryOptions
{
ExtraParams = new Dictionary<string, string> {
{ "defType", "edismax" } ,
{ "fl", "*,score,_dist_:geodist() " } ,
{ "bf", "recip(geodist(),1,1000,1000)" } ,
{ "fq", string.Format("{{!geofilt d={0}}}", radius * 1.609344) } ,
{ "sfield", "Location" } ,
{ "pt", string.Format("{0},{1}", centerLat, centerLong) }
}
});
return apartments;
的错误我得到的是:Unable to read data from the transport connection: The connection was closed.
我已经检查了TomCat中的日志,并且请求正在经过并且结果似乎已经返回。
任何想法,为什么我没有得到结果吗?
感谢, 德鲁