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中的日誌,並且請求正在經過並且結果似乎已經返回。
任何想法,爲什麼我沒有得到結果嗎?
感謝, 德魯