Feature Pack 7 or later

Troubleshooting: Exceptions after replicating or updating the product or inventory index

Review the following considerations if you encounter exceptions after replicating or updating the product or inventory index.

Catalog Entry core solrconfig.xml file

Ensure that a line exists that declares the post commit listener within the UpdateHandler section:

<listener event="postCommit" class="com.ibm.commerce.solr.listener.PostCommitNotifyOnChangeListener" />
Ensure that lines exist that declare the first and new searcher listeners within the Query section:

<listener event="newSearcher" class="com.ibm.commerce.solr.listener.NewSearcherNotifyOnChangeListener" />
<listener event="firstSearcher" class="com.ibm.commerce.solr.listener.NewSearcherNotifyOnChangeListener" />

Extension core (such as Inventory) solrconfig.xml file

Ensure that a line exists that declares the post commit listener within the UpdateHandler section:

<listener event="postCommit" class="com.ibm.commerce.solr.listener.PostCommitNotifyOnChangeListener" />
Ensure that a line exists that declares the new searcher listener within the Query section:

<listener event="newSearcher" class="com.ibm.commerce.solr.listener.NewSearcherNotifyOnChangeListener" />
Note: There is no need for any listener for the first searcher listener in any extension core.

Solr core configuration solr.xml file

A notifyOnChange property must exist for each extension core declaration within this file. This property defines its associated base core to be notified in an event of replication or update.

For example:

<core instanceDir="MC_10001\generic\CatalogEntry\Inventory\" name="MC_10001_CatalogEntry_Inventory_generic">
   <property name="notifyOnChange" value="MC_10001_CatalogEntry_en_US"/>
</core>

Solr configuration solrconfig.xml file for replication

Ensure that the replication handler class implementation is set to SolrSearchReplicationHandler when replication is enabled.

For example:

<requestHandler name="/replication" class="com.ibm.commerce.foundation.internal.server.services.search.handler.solr.SolrSearchReplicationHandler">