Lucene - Core
  1. Lucene - Core
  2. LUCENE-4804

PostingsHighlighter sometimes applies term to the wrong passage

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2, 6.0
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      There is an off-by-one if the term starts exactly on a sentence boundary.

      1. LUCENE-4804_test.patch
        3 kB
        Robert Muir
      2. LUCENE-4804.patch
        4 kB
        Robert Muir

        Activity

        Hide
        Robert Muir added a comment -

        A simple test and an assert for it added to the random test. But I havent created a fix yet.

        Show
        Robert Muir added a comment - A simple test and an assert for it added to the random test. But I havent created a fix yet.
        Hide
        Robert Muir added a comment -

        stupid bug, a > that should >=

        Show
        Robert Muir added a comment - stupid bug, a > that should >=
        Hide
        Michael McCandless added a comment -

        +1, also sneaky!

        Show
        Michael McCandless added a comment - +1, also sneaky!
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Robert Muir
        http://svn.apache.org/viewvc?view=revision&revision=1450464

        LUCENE-4804: PostingsHighlighter sometimes applies term to the wrong passage

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Robert Muir http://svn.apache.org/viewvc?view=revision&revision=1450464 LUCENE-4804 : PostingsHighlighter sometimes applies term to the wrong passage
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Robert Muir
        http://svn.apache.org/viewvc?view=revision&revision=1450462

        LUCENE-4804: PostingsHighlighter sometimes applies term to the wrong passage

        Show
        Commit Tag Bot added a comment - [trunk commit] Robert Muir http://svn.apache.org/viewvc?view=revision&revision=1450462 LUCENE-4804 : PostingsHighlighter sometimes applies term to the wrong passage
        Hide
        Uwe Schindler added a comment -

        Closed after release.

        Show
        Uwe Schindler added a comment - Closed after release.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development