[ 
https://issues.apache.org/jira/browse/LUCENE-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702691#action_12702691
 ] 

John Wang commented on LUCENE-1613:
-----------------------------------

Michael: We ran into this actually in facet search. When there is a null 
search, instead of counting on results on a MatchAllDocsQuery, we were just 
using docFreq() method to avoid facet counting. The problem came with there 
were updates. We did get around it, but was rather cumbersome.

I agree the fix is non-trivial, just wanted to open up an issue for tracking 
purposes incase we think of some thing.

> 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

Reply via email to