}
final Configuration conf = new Configuration(this.parser);
conf.addUserFields(this.userFields);
conf.setFulltext(this.fulltext);
final Parser myparser = new Parser(conf);
final List<Document> documents = myparser.parse(file);
for (final Document doc : documents) {
logger.debug("Document " + doc.get(conf.getID()));
final Term docid = new Term(conf.getID(), doc.get(conf.getID()));
writer.updateDocument(docid, doc);