Returns the number of documents currently in this index. If the writer is currently open, this returns IndexWriter.DocCount(), else IndexReader.NumDocs(). But, note that IndexWriter.DocCount() does not take deltions into account, unlike IndexReader.NumDocs().
IndexModifier Class | Lucene.Net.Index Namespace | |