Conceptual doubt about "feature fields" with regards to addition/multiplication of scores

2021-03-01 Thread Nicolás Lichtmaier
TL;DR: Why score addition is recommended in examples when using these? Doesn't that make the resulting score sensible to the number of boolean clauses? I've been reading about feature fields (in particular the "dynamic" feature field you get with LongPoint.newDistanceFeatureQuery(), for addin

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

Re: Incorrect CollectionStatistics if IndexWriter.close is not called

2021-03-01 Thread Diego Ceccarelli (BLOOMBERG/ LONDON)
I'm not sure that closing and opening the index writer will always work - I think the 'problem' will be solved once the segment with the deleted document will be merged with another segment - that might happen during the close but might also *not* happen (e.g., if you have only one segment, and