def update_source_unit_index(writer, unit):
 writer.update_document(pk=unit.pk, source=force_text(unit.source), context=force_text(unit.context), location=force_text(unit.location))

def update_source_unit_index ( writer , unit ) : writer . update_document ( pk = unit . pk , source = force_text ( unit . source ) , context = force_text ( unit . context ) , location = force_text ( unit . location ) )
updates source index for given unit .