Package org.apache.lucene.index
Class IndexWriter.DocStats
java.lang.Object
org.apache.lucene.index.IndexWriter.DocStats
- Enclosing class:
IndexWriter
DocStats for this index
-
Field Summary
Modifier and TypeFieldDescriptionfinal int
The total number of docs in this index, counting docs not yet flushed (still in the RAM buffer), and also counting deleted docs.final int
The total number of docs in this index, counting docs not yet flushed (still in the RAM buffer), but not counting deleted docs. -
Method Summary
-
Field Details
-
maxDoc
public final int maxDocThe 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 callIndexWriter.commit()
first. -
numDocs
public final int numDocsThe total number of docs in this index, counting docs not yet flushed (still in the RAM buffer), but not counting deleted docs.
-