IndexWriter: implement update index
index writer handles duplicate file now