我尝试连接到Sphinx Windows Service localhost。我已安装该服务并且它正在运行,我已正确构建索引,并且我正在使用.net Sphinx客户端尝试连接:https://code.google.com/p/sphinx-dotnet-client/
ConnectionBase _connection;
_connection = new PersistentTcpConnection("localhost", 9312);
try
{
_connection.Open();
var command = new SearchCommand(_connection, new SearchQuery("garcia"));
command.Execute();
}
finally
{
_connection.Close();
}
我收到错误: “远程主机强行关闭现有连接”
根据那里的文档,这是Sphinx的默认端口: http://sphinxsearch.com/docs/current.html#quick-tour
我对如何调试这个以及下一步采取的步骤感到茫然。