if ( indexingType == IndexingType.STANDARD ) {
for ( int i = 0; i < documentCount; i++ ) {
obs = indexWriter.newDocumentRecord();
indexWriter.writeDocumentPointer( obs, i );
payload.read( ibs );
indexWriter.writePayload( obs, payload );
}
}
else {
// We sort position by pointed document pointer.
LongArrays.quickSort( position, 0, documentCount, new AbstractLongComparator() {