Documentation Home

3.1.1-GA to 3.1.2-GA Migration

Admin Javascript and CSS locations

The location of admin.js and admin.css has changed. To update this, update the blJsFileMap bean in applicationContext-admin to be:

<bean id="blJsFileMap" class="org.springframework.beans.factory.config.MapFactoryBean">
    <property name="sourceMap">
        <map>
            <entry key="admin/admin.js" value-ref="blJsFileList"/>
            <entry key="admin/admin.css" value-ref="blCssFileList"/>
        </map>
    </property>  
</bean>

Solr changes

We have updated the Solr service to actually work properly with standalone Solr with multiple indexes. You can now instantiate the blSearchService bean with 3 different Solr locations:

<bean id = "solrPrimaryServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
    <constructor-arg value="${solr.url.primary}" />
</bean>

<bean id = "solrReindexServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
    <constructor-arg value="${solr.url.reindex}" />
</bean>

<bean id = "solrAdminServer" class="org.apache.solr.client.solrj.impl.HttpSolrServer">
    <constructor-arg value="${solr.url.admin}" />
</bean>

<bean id="blSearchService" class="org.broadleafcommerce.core.search.service.solr.SolrSearchServiceImpl">
    <constructor-arg name="solrServer" ref="solrPrimaryServer" />
    <constructor-arg name="reindexServer" ref="solrReindexServer" />
    <constructor-arg name="adminServer" ref="solrAdminServer" />
</bean>

The first 2 arguments are paths to the Solr indexes whereas solr.source.admin is the root of the external Solr server, used for issuing commands like core swapping.

Example config in a properties file:

solr.url.primary=http://localhost:8983/solr/primary
solr.url.reindex=http://localhost:8983/solr/reindex
solr.url.admin=http://localhost:8983/solr

Solr client update

We have also updated the Solr client to 4.7.2 (see https://github.com/BroadleafCommerce/BroadleafCommerce/issues/813). This should be backwards compatible in communicating to older Solr servers.

The full list of changes that have been made to the stock DemoSite project is available on GitHub.