Skip to Content
1
Former Member
Jul 07, 2014 at 03:11 PM

Error while running delete-Index-cronJob

502 Views

We're getting an error while launching the delete-marketIndex-cronJob on a freshly created site with the accelerator.

de.hybris.platform.solrfacetsearch.indexer.exceptions.UndefinedIndexerQuery: DELETE query not defined in configuration.

at de.hybris.platform.solrfacetsearch.indexer.strategies.AbstractIndexStrategy.getIndexerQuery(AbstractIndexStrategy.java:184) at de.hybris.platform.solrfacetsearch.indexer.strategies.AbstractIndexStrategy.execute(AbstractIndexStrategy.java:142) at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerService.deleteFromIndex(DefaultIndexerService.java:92) at de.hybris.platform.solrfacetsearch.indexer.cron.SolrIndexerJob.performIndexingJob(SolrIndexerJob.java:70) at de.hybris.platform.solrfacetsearch.indexer.cron.AbstractIndexerJob.perform(AbstractIndexerJob.java:41) at de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob.performCronJob(ServicelayerJob.java:40) at de.hybris.platform.cronjob.jalo.Job.execute(Job.java:1297) at de.hybris.platform.cronjob.jalo.Job.performImpl(Job.java:815) at de.hybris.platform.cronjob.jalo.Job.access$1(Job.java:772) at de.hybris.platform.cronjob.jalo.Job$JobRunable.run(Job.java:677) at de.hybris.platform.util.threadpool.PoolableThread.run(PoolableThread.java:198) Is there some configuration we're missing? UPDATE: It seems that we have found where to add a new query to solr indexer, it is in the solr.impex file in the initialdata project. ;$solrIndexedType;$searchIndexNamePrefix-deleteQuery;delete;;;false;"SELECT {p:PK} FROM {Product AS p} WHERE {p:varianttype} IS NULL";anonymous
Unfortunately, this gets imported in the HMC as a "full" type query instead of a delete one.