
yseeley at gmail
Jan 8, 2006, 8:24 AM
Post #2 of 3
(574 views)
Permalink
|
Are you using the latest version of Lucene (after Dec 8th)? There was a bug fix regarding this: http://issues.apache.org/jira/browse/LUCENE-479 -Yonik On 1/8/06, Koji Sekiguchi <koji.sekiguchi [at] m4> wrote: > Hello Luceners! > > steps: > > 1. index has 15 docs and has no deleted docs > 2. call IndexReader.delete(Term) and 6 docs are deleted > 3. now maxDoc() == 15, numDocs() == 9 > 4. call IndexReader.undeleteAll() > 5. maxDoc() == 15, numDocs() == 9 <<???>> > 6. close IndexReader and open again > 7. now maxDoc() == 15, numDocs() == 15 > > > I expected numDocs() returns 15 at step 5. > Am I wrong? I'm using Lucene 1.9. > The program is single thread and use single IndexReader > and threre is no other processes touch the index directory. > > Thanks in advance, > > Koji > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe [at] lucene > For additional commands, e-mail: java-user-help [at] lucene > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe [at] lucene For additional commands, e-mail: java-user-help [at] lucene
|