ffected if you have X or X-1 documents in the collection...
> >
> > Cheers,
> > diego
> >
> > From: java-user@lucene.apache.org At: 03/01/21 16:23:48To: Diego
> Ceccarelli (BLOOMBERG/ LONDON ) , java-user@lucene.apache.org
> > Subject: Re: Incorrect CollectionStati
che.org At: 03/01/21 16:23:48To: Diego Ceccarelli
> (BLOOMBERG/ LONDON ) , java-user@lucene.apache.org
> Subject: Re: Incorrect CollectionStatistics if IndexWriter.close is not called
>
> Hi,
>
> You're right the documentation of Terms.getDocCount says that "this
> measure does
Cheers,
diego
From: java-user@lucene.apache.org At: 03/01/21 16:23:48To: Diego Ceccarelli
(BLOOMBERG/ LONDON ) , java-user@lucene.apache.org
Subject: Re: Incorrect CollectionStatistics if IndexWriter.close is not called
Hi,
You're right the documentation of Terms.getDocCount says that "
Hi,
You're right the documentation of Terms.getDocCount says that "this
measure does not take deleted documents into account".
So if we want correct counts and correct query scores, the IndexWriter
has to be closed after documents are deleted/updated and a new one has
to be created when new docume