try {
APILocator.getContentletIndexAPI().getRidOfOldIndex();
} catch (DotDataException e1) {
Logger.warn(this, "Exception trying to delete old indexes",e1);
}
conAPI.refreshAllContent();
long recordsToIndex = 0;
try {
recordsToIndex = APILocator.getDistributedJournalAPI().recordsLeftToIndexForServer();
Logger.info(this, "Records left to index : " + recordsToIndex);
} catch (DotDataException e) {