[英]Solrnet /ASP.NET sample without MVC
I am trying to get a handle on Solrnet and interacting an ASP.NET site with a Solr server. 我试图在Solrnet上获取一个句柄,并与Solr服务器交互一个ASP.NET站点。 However, the sample app (on the code repository) is MVC based ,does anyone know of a version in plain vanilla ASP.NET?
但是,示例应用程序(在代码存储库上)是基于MVC的,有人知道纯ASP.NET中的版本吗?
Thanks 谢谢
There aren't any major differences really: 确实没有任何主要区别:
var solr = ServiceLocator.Current.GetInstance<ISolrOperations<MyDocumentClass>>()
), (in MVC it's easy to instead inject the interface using an IoC container) var solr = ServiceLocator.Current.GetInstance<ISolrOperations<MyDocumentClass>>()
),(在MVC中,很容易代替使用IoC容器注入接口) This is little late. 这还不晚。 But for people still looking for Solrnet /ASP.NET sample without MVC can look at the following: http://crazorsharp.blogspot.com/2010/01/full-text-search-using-solr-lucene-and.html http://blog.dileno.com/archive/201009/get-started-using-solr-for-search-with-aspnet/
但人们仍在寻找无MVC Solrnet /ASP.NET样品可以看看下面: http://crazorsharp.blogspot.com/2010/01/full-text-search-using-solr-lucene-and.html HTTP ://blog.dileno.com/archive/201009/get-started-using-solr-for-search-with-aspnet/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.