Re: Incorrect CollectionStatistics if IndexWriter.close is not called

2021-03-03 Thread Robert Muir
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

Re: Incorrect CollectionStatistics if IndexWriter.close is not called

2021-03-02 Thread Marc F
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

Re: Incorrect CollectionStatistics if IndexWriter.close is not called

2021-03-01 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
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 "

Re: Incorrect CollectionStatistics if IndexWriter.close is not called

2021-03-01 Thread Marc F
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