获取错误"远程服务器返回错误:(400)错误请求。"
public void IndexPlayers()
{
new SolrBaseRepository.Instance<Player>().Start();
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<Player>>();
var players = new PlayerRepository().GetPlayers();
solr.Add(players);
solr.Commit();
}
在Solr中添加玩家。