hey, lemme try to explain:
-
doc
is the internal docID. it's totally irrelevant to you it's the Nth document in a segment. -
docCount
is the total number of documents that have at least one term in the field. For simplicity you can think of it as the number of docs in you index -
docs.deleted
is the number of documents marked as deleted. We take them still into account when we score ie.docCount
will contain deleted docs.
hope this helps