Currently we count errored documents as indexed. Maybe we should only count successfully indexed document as such, and provide a separate method to count errored documents?
Same goes for loaded entities, I think. Though there's the question of whether we should increment the errored documents counter if entity loading failed?
Original discussion: https://github.com/hibernate/hibernate-search/pull/1819#discussion_r239364303