flush();
}
private void wipeExistingIndexes() {
QueryInterceptor queryInterceptor = ComponentRegistryUtils.getQueryInterceptor(cache);
queryInterceptor.purgeAllIndexes();
}
private void flush() {
DefaultMassIndexerProgressMonitor progressMonitor = new DefaultMassIndexerProgressMonitor(cache.getAdvancedCache().getComponentRegistry().getTimeService());
new DefaultBatchBackend(searchFactory, progressMonitor).flush(searchFactory.getIndexedTypes());