Try our conversational search powered by Generative AI!

SolrSearch Nuget: Can not rebuild search index after reinstall SolrSearchProvider Nuget

Found in

EPiServer.Commerce.SolrSearchProvider 7.5.446.0

Created

Jan 22, 2014

Updated

Mar 18, 2014

Area

Falcon/Commerce

State

Closed, Fixed and Tested


Steps to reproduce

Dev note: This bug was caused by a "wrong" custom-build solrnet.dll. The HttpWebAdapters.dll was supposed to merge into solrnet.dll, but it was not. HttpWebAdapters.dll was included in our default package, that's why solr search works the first time. WHen being uninstalled, it got deleted, then later installs will fail.

We use custom-build solrnet.dll to remove dependency on NHibernate and Ninject.

The solution was to merge HttpWebAdapters.dll into Solrnet.dll. As we released HttpWebAdapters.dll in 7.5, it should be there untouched, even it was a mistake.

 

Precondition : Config SolrSearch Nuget 7.5.446.0 for both front end and back end

1. Open Commerce front-end and backend project in Visual Studio 2010 or later

2. Choose Nuget feed that contain SolrSerchProvider above, then Choose to uninstall EPiServer.Commerce.SolrSearchProvider

3. Build project to ensure that the SolrSearchProvider.dll will be removed from References list

4. Reopen Commerce front-end and backend project in Visual Studio 2010 or later

5. Choose Nuget feed that contain SolrSearchProvider above, then Choose to install EPiServer.Commerce.SolrSearchProvider then build project successfully

6. Go to commerce manager -> Administration -> Seach index then rebuild index

 

Observerd: Display error message bellow:

1/22/2014 10:30:14 AM: Build Failed using "catalog" indexer. "Could not load file or assembly 'HttpWebAdapters, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

 

Expected: Rebuild index successfully and can use SolrSearchProvider on Commerce site.

 

[Sing ]Note: Meet the problem in the SolrSearch Nuget 7.5.447.0 with both  sharecore = True and false


Window Server2008R2, SQL Server 2008R2