if ( word.length() == 0 || index[ i ].termProcessor != null && ! index[ i ].termProcessor.processTerm( word ) ) continue;
IndexIterator indexIterator = indexReader[ i ].documents( word );
if ( currDoc != indexIterator.skipTo( currDoc ) )
LOGGER.error( index[ i ] + ": Document " + currDoc + " does not appear in the inverted list of term " + word );
else if ( index[ i ].hasPositions ) {
indexIterator.positions( occ[ i ] );
if ( IntArrayList.wrap( occ[ i ], indexIterator.count() ).indexOf( pos ) == -1 )
LOGGER.error( index[ i ] + ": Position " + pos + " does not appear in the position list of term " + word + " in document " + currDoc );
}
pos++;
}