maxDoc
The total number of docs in this index, counting docs not yet flushed (still in the RAM buffer), and also counting deleted docs. NOTE: buffered deletions are not counted. If you really need these to be counted you should call IndexWriter.commit first.