Iteratively yield the index as chunks of documents, each of size <= chunksize.

The chunk is returned in its raw form (matrix or sparse matrix slice). The size of the chunk may be smaller than requested; it is up to the caller to check the result for real length, using chunk.shape[0].