Using Java how would you find out the number of documents in an lucene index?
+4
A:
IndexReader contains the methods you need, in particular, numDocs
John Gardner
2009-01-14 11:05:18
+1
A:
The official documentation: http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/index/IndexReader.html#numDocs()
Avi
2009-01-14 11:31:35