4.0 to 5.0 Search AppContext Migration
SOLR configuration
Below are steps to take for migrating Embedded and Standalone Solr instances. It is recommend to use the standalone Solr option (or SolrCloud), but we have provided migration steps for Embedded as well. The common steps to take for both options are follows:
Copy over schema.xml to your Solr servers'
/conffolderCopy over synonyms.txt to your Solr servers'
/conffolderIn
site/applicationContext.xml- Replace
<bean id="blSearchService" class="org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl">with<bean id="blCatalogSolrConfiguration" class="org.broadleafcommerce.core.search.service.solr.SolrConfiguration"> - Re-Add
blSearchServiceas a self enclosed bean :<bean id="blSearchService" class="org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl"/>
- Replace
Using Embedded Solr
In
site/applicationContext.xmlyou will want to include the following to yourblCatalogSolrConfigurationbean:<constructor-arg name="solrServer" value="solrhome" />- OR
<constructor-arg name="solrServer" value="path/to/solr/installation" />