Lucene - Core
  1. Lucene - Core
  2. LUCENE-1613

TermEnum.docFreq() is not updated with there are deletes

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: core/search
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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.

        Activity

        Michael McCandless made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Michael McCandless made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        John Wang made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563267 ] jira [ 12584370 ]
        Mark Thomas made changes -
        Workflow jira [ 12461721 ] Default workflow, editable Closed status [ 12563267 ]
        John Wang made changes -
        Field Original Value New Value
        Attachment TestDeleteAndDocFreq.java [ 12406415 ]
        John Wang created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            John Wang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development