Convert objects to Documents and keys to queries before writing to index to avoid needing to rollback when conversion fails. Open new IndexWriter after Rollback or Dispose is called. Fixes #7.