[jira] [Resolved] (LUCENE-7417) Highlighting fails for MultiPhraseQuery's with one clause

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Resolved] (LUCENE-7417) Highlighting fails for MultiPhraseQuery's with one clause

ASF GitHub Bot (Jira)

     [ https://issues.apache.org/jira/browse/LUCENE-7417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley resolved LUCENE-7417.
       Resolution: Fixed
    Fix Version/s: 5.5.4
    Lucene Fields: New,Patch Available  (was: New)

Thanks for the patch Thomas!

BTW in my commit I also updated some looping in this method to use Java 5 for-each style.

> Highlighting fails for MultiPhraseQuery's with one clause
> ---------------------------------------------------------
>                 Key: LUCENE-7417
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7417
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>    Affects Versions: 5.2.1, 5.x, 5.5.2
>            Reporter: Thomas Kappler
>            Assignee: David Smiley
>             Fix For: 6.3, 5.5.4
>         Attachments: multiphrasequery_singleclause_highlighting.patch
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]