Lucene - Core
  1. Lucene - Core
  2. LUCENE-5691

DocTermsOrds lookupTerm is wrong in some cases

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      needs the following two conditions:

      • underlying termsenum supports ord()
      • the term you lookup would be inserted at the end (e.g. seek returns END)

      the fix is simple, it just needs to handle SeekStatus.END properly.

        Activity

        Hide
        Robert Muir added a comment -

        patch with a test. We should backport to 4.x too

        Show
        Robert Muir added a comment - patch with a test. We should backport to 4.x too
        Hide
        Michael McCandless added a comment -

        +1, nice catch!

        Show
        Michael McCandless added a comment - +1, nice catch!
        Hide
        ASF subversion and git services added a comment -

        Commit 1596370 from Robert Muir in branch 'dev/trunk'
        [ https://svn.apache.org/r1596370 ]

        LUCENE-5691: DocTermOrds lookupTerm is wrong in some cases

        Show
        ASF subversion and git services added a comment - Commit 1596370 from Robert Muir in branch 'dev/trunk' [ https://svn.apache.org/r1596370 ] LUCENE-5691 : DocTermOrds lookupTerm is wrong in some cases
        Hide
        ASF subversion and git services added a comment -

        Commit 1596371 from Robert Muir in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1596371 ]

        LUCENE-5691: DocTermOrds lookupTerm is wrong in some cases

        Show
        ASF subversion and git services added a comment - Commit 1596371 from Robert Muir in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1596371 ] LUCENE-5691 : DocTermOrds lookupTerm is wrong in some cases

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development