Skip to content

A demo solution of using Apache Solr as a search engine behind a ASP.NET MVC4 web application using SolrNet as a client library.

License

Notifications You must be signed in to change notification settings

jstrassburg/SolrSearchEngineDemo

Repository files navigation

Solr Search Engine Demo

A demonstration of using Apache Solr as a search engine behind an ASP.NET MVC4 web application and glued together with SolrNet as a .NET Solr client library.


Running the Demo

  1. Get the AdventureWorks sample database and deploy it locally.
  2. Clone this repo from github.
  3. Deploy the vSolrImport view to your AdventureWorks database.
  4. Install the Java runtime if you don't have it.
  5. Start Solr by executing the Solr/start_solr.cmd script in the solution.
  6. On http://localhost:8983/solr (the administration site for Solr) trigger a data-import by browsing to adventureWorksProductsCollection -> Dataimport. Click Clean/Commit/Optimize and then Execute. Note: The Solr data import is configured via Solr\solr-4.1.0\adventureWorksInstance\solr\adventureWorksProductsCollection\conf\data-config.xml You will likely need to tweak the connection string and credentials for your database server.
  7. Run the web application.

Key Solr Configuration Files

The following files exist in the Solr\solr-4.1.0\adventureWorksInstance\solr\adventureWorksProductsCollection\conf

  • data-config.xml - Configuration for Solr data import handler
  • elevate.xml - Configuration for Solr query elevation component
  • schema.xml - The Solr document schema
  • solrconfig.xml - Solr's main configuration, contains configuration of all request handlers
  • synonyms.txt - Solr's word replacement configuration

About

A demo solution of using Apache Solr as a search engine behind a ASP.NET MVC4 web application using SolrNet as a client library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages