I think that's useful (for knowing when it's time to optimize), though I 
thought I added something like that a long time ago... maybe on some local 
version...

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
From: Shai Erera <[EMAIL PROTECTED]>
To: java-dev@lucene.apache.org
Sent: Friday, January 11, 2008 2:30:24 PM
Subject: Add numDeletedDocs() to IndexReader

Hi guys,

I had a need to know how many deleted documents are in the index. I
 noticed
there isn't an API for it in IndexReader, however the information can
 be
obtained by calling IndexReader.maxDoc() - IndexReader.numDocs().
Do you think it's worth adding such an API to IndexReader?

Cheers,

Shai




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to