implement and test creating a Lucene doc