Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7417

Highlighting fails for MultiPhraseQuery's with one clause

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.1, 5.5.2
    • Fix Version/s: 5.5.4, 6.2.1, 6.3
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      This bug is the same issue as LUCENE-7231, just for MultiPhraseQuery instead of PhraseQuery. The fix is the same as well. To reproduce, change the test that was committed for LUCENE-7231 to use a MultiPhraseQuery. It results in the same error

      java.lang.IllegalArgumentException: Less than 2 subSpans.size():1

      I have a patch including a test against branch_5.x, it just needs to go through legal before I can post it.

        Attachments

          Activity

            People

            • Assignee:
              dsmiley David Smiley
              Reporter:
              Thomas Kappler Thomas Kappler
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: