commit the index writer on init, so application can start in case of
missing or empty index folder.