final ProgressLogger pl = new ProgressLogger( LOGGER, logInterval, "documents" );
if ( documentSequence instanceof DocumentCollection ) pl.expectedUpdates = ( (DocumentCollection)documentSequence ).size();
for ( int i = 0; i < numberOfIndexedFields; i++ ) {
final String fieldName = factory.fieldName( indexedField[ i ] );
switch ( factory.fieldType( indexedField[ i ] ) ) {
case TEXT:
scan[ i ] = new Scan( basename + '-' + fieldName, fieldName, completeness, termProcessor, map != null ? IndexingType.REMAPPED
: IndexingType.STANDARD, 0, 0, bufferSize, builder, tempDir );
break;