}
else {
log.tracef( "Updating %s#%s by id using an IndexWriter#updateDocument.", managedType, id );
Term idTerm = new Term( builder.getIdKeywordName(), work.getIdInString() );
Map<String, String> fieldToAnalyzerMap = work.getFieldToAnalyzerMap();
ScopedAnalyzer analyzer = builder.getAnalyzer();
analyzer = AddWorkDelegate.updateAnalyzerMappings( workspace, analyzer, fieldToAnalyzerMap );
writer.updateDocument( idTerm, work.getDocument(), analyzer );
}
workspace.incrementModificationCounter( 1 );
}