make sure the indexer respects the batch_size and offset parameters