if ( documentIndex != 0 ) {
IndexIterator indexIterator = index[ i ].documents( 0 );
int k = 0;
while ( indexIterator.hasNext() ) {
assertEquals( payloadPointers[ i ].getInt( k ), indexIterator.nextDocument() );
if ( factory.fieldType( field[ i ] ) == FieldType.INT ) assertEquals( ( (Number)payloadContent[ i ].get( k ) ).longValue(), ( (Number)indexIterator.payload().get() )
.longValue() );
else assertEquals( payloadContent[ i ].get( k ), indexIterator.payload().get() );
k++;
}
indexIterator.dispose();