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

Highlighting fails for MultiPhraseQuery's with one clause

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.2.1, 5.5.2
    • 5.5.4, 6.2.1, 6.3
    • modules/highlighter
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: