Using Solr with IIS

We will use solr as our search server, but, as you know, solr is based on java and apache server, and our database is MSSQL, and our web server is IIS. Could you suggest me a better way to enable java apache asp.net and IIS?

The best

+4
source share
4 answers

You cannot deploy Solr inside IIS because it requires a servlet container. Instead, you can deploy solr to any of the servlet containers listed below.

  • Glassfish
  • Jboss
  • Jetty (included by default in the solr package)
  • Resin
  • Tomcat
  • Weblogic
  • Websphere

Details on each deployment can be found here SolrInstall

Then you can talk to solr from .net using one of these drivers (clients)

You do not need to worry about IIS at all.

+7
source

https://bitnami.com/stack/solr

This is the installer. And soooo beaten stones for that! Just tried a bunch of different things ...

Using the Web Platform installer to install Zoo, which makes Solr through IIS. It came out.

Jetty is not installed as a service

Tried Tomcat 8 with its IIS connector (acts like a filter to which you can install the application). The configuration was insane. Missing file from connector.

Found that my last search, and it's awesome!

0
source

Here's how you should set up your application.

  • Host Solr at Tomcat.
  • Use DataImportHandler to transfer data from MSSQL to Solr.
  • From your ASP application, talk to Solr over HTTP. (To do this, write some helper classes)
  • Parse the JSON response using the Newtonsoft.Json.Linq library.
  • The best practice is to obtain document identifiers from Solr and select other information from MSSQL.

I configured this setting on a large e-commerce site and supported site searches, search suggestions, search refinements (using facets), and many other complex searches. It works great and super fast.

0
source
0
source

Source: https://habr.com/ru/post/1391074/


All Articles