if ( building ) builder.startDocument( document.title(), document.uri() );
for ( int i = 0; i < numberOfIndexedFields; i++ ) {
switch ( factory.fieldType( indexedField[ i ] ) ) {
case TEXT:
reader = (Reader)document.content( indexedField[ i ] );
wordReader = document.wordReader( indexedField[ i ] );
wordReader.setReader( reader );
if ( building ) builder.startTextField();
scan[ i ].processDocument( map != null ? map[ documentPointer ] : documentPointer, wordReader );
if ( building ) builder.endTextField();
overallTerms += scan[ i ].numTerms;