SolrNet을 사용하여 웹 서비스에서 Solr 서버를 검색하려고합니다. 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;
오류 내가 얻고있다 : 나는 Global.asax에의 연결을 설정 Unable to read data from the transport connection: The connection was closed.
Tomcat에서 로그를 검사했는데 요청이 완료되어 결과가 반환 된 것처럼 보입니다.
내가 왜 결과를 다시 얻지 못하는지 알고 싶습니다. '행'매개 변수가 코드에서 정의되지 않은 것처럼
감사합니다, 드류