[ https://issues.apache.org/jira/browse/LUCENE-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786697#action_12786697 ]
Mark Miller commented on LUCENE-1613: ------------------------------------- bq. As an outside observer I would argue against keeping the bug open forever for correctness sake. I agree - its not really a bug. Its by design. bq. I suppose we could make a "fixTermCounts()" method, which takes a looong time as it iterates through the postings for each term to compute the actual count, Just call expungeDeletes? +1 on closing. > TermEnum.docFreq() is not updated with there are deletes > -------------------------------------------------------- > > Key: LUCENE-1613 > URL: https://issues.apache.org/jira/browse/LUCENE-1613 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Affects Versions: 2.4 > Reporter: John Wang > Attachments: TestDeleteAndDocFreq.java > > > TermEnum.docFreq is used in many places, especially scoring. However, if > there are deletes in the index and it is not yet merged, this value is not > updated. > Attached is a test case. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org