CMS-1384 Simple tool to reindex and reinitialize data

The index has to be created with mapping again after deletion.