moved mergeIndexFiles() function to IndexerUtils