setCodec

Set the Codec.

Only takes effect when IndexWriter is first created.