used builting buffered index writer for whoosh, pass unit tests