Use DataImportHandler to feed data from MSSQL to Solr.
From your ASP application talk to the Solr via HTTP. (Write some helper classes for this)
Parse the JSON response using Newtonsoft.Json.Linq library.
The best practice is that you get the document IDs from Solr and fetch the other information from MSSQL.
I have configured this set up in a large e-commerce site and supported site search, search suggestions, search refinements (using facets), and lot of other complex lookups. It's working great and super fast.
发布评论
评论(4)
您无法在 IIS 中部署 Solr,因为它需要 servlet 容器。相反,您可以将 solr 部署在以下任一servlt容器中
您可以在此处找到有关每个部署的深入详细信息 SolrInstall
然后你就可以从.net与solr通信使用这些驱动程序(客户端)之一
您根本不需要担心 IIS。
You cannot deploy Solr inside IIS because it requires a servlet container. Instead you can deploy solr in any one of the below servelt containers
You can find the in-depth details about each deployment here SolrInstall
Then you can communicate with solr from .net using either one of these drivers(clients)
You dont need to worry about IIS at all.
https://bitnami.com/stack/solr
这是一个安装程序。 Bitnami 这样做真是太棒了!刚刚尝试了一堆不同的东西...
使用 Web Platform Installer 安装 Zoo,它通过 IIS 执行 Solr。它出问题了。
Jetty 不作为服务安装
尝试使用其 IIS 连接器运行 Tomcat 8(充当您可以设置应用程序的过滤器)。配置太疯狂了。连接器中缺少文件。
发现这是我最后一次搜索,太棒了!
https://bitnami.com/stack/solr
It's an installer. And Bitnami soooo rocks for doing this! Just tried a bunch of different things...
Using Web Platform Installer to install Zoo, which does Solr through IIS. It's bugged out.
Jetty doesn't install as a service
Tried running Tomcat 8 with their IIS connector (acts as a filter you can set an app to). Configuration was insane. Missing files from the connector.
Found that as my last search, and it's awesome!
这就是您应该如何设置您的应用程序。
我在一个大型电子商务网站中配置了此设置,并支持网站搜索、搜索建议、搜索细化(使用方面)和许多其他复杂的查找。它工作得很好而且超级快。
This is how you should set up your application.
I have configured this set up in a large e-commerce site and supported site search, search suggestions, search refinements (using facets), and lot of other complex lookups. It's working great and super fast.
看看这个。他们在 iis 下部署 java servlet。
http://www.helicontech.com /文章/部署-java-servlet-applications-on-windows-with-iis/
Take a look at this one. They deploy java servlets under iis.
http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/