[
https://issues.apache.org/jira/browse/LUCENE-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786750#action_12786750
]
John Wang commented on LUCENE-1613:
-----------------------------------
Maybe to just add a javadoc comment on the call to explain the behavior in this
case?
Many times calling docFreq happens in a readonly context, calling
expungeDeletes in that context is not a good idea.
I agree it is not trivial to fix while keeping the performance. I don't mind
closing the bug either.
> 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: [email protected]
For additional commands, e-mail: [email protected]