setOpenMode

Specifies OpenMode of the index.

Only takes effect when IndexWriter is first created.