Skip to Content
0
Former Member
Aug 05, 2016 at 09:08 AM

How to override UpdateIndexStrategy

35 Views

The issue is: I wan't to perform an action after an updateIndexCronJob has finished.

I've seen that de.hybris.platform.solrfacetsearch.indexer.strategies.UpdateIndexStrategy is used on the cronjob and that it has an afterOperationOnIndexType(boolean, IndexedType, SolrConfig) method which is perfect for what I want to achieve (to perform a cache refresh if changes ocurred which is indicated on the boolean parameter.

The thing is that I'm having problems having the Spring bean to work so that my specific class that extends from UpdateIndexStrategy is used instead of the Hybris OOTB one.