lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-1613) TermEnum.docFreq() is not updated with there are deletes
Date Sat, 25 Apr 2009 10:06:30 GMT

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

Michael McCandless commented on LUCENE-1613:
--------------------------------------------

John, do you have cases in practice where this is causing problems?

I understand the problem, and it's certainly real, and is not easy to fix "automatically",
but I'm wondering in practice whether the difference in the resulting scores is ever significant.

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, and then writes a new terms
dict.  The app would have to manually call this method.

> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message