def update_target_unit_index(writer, unit):
 writer.update_document(pk=unit.pk, target=force_text(unit.target), comment=force_text(unit.comment))

def update_target_unit_index ( writer , unit ) : writer . update_document ( pk = unit . pk , target = force_text ( unit . target ) , comment = force_text ( unit . comment ) )
updates target index for given unit .