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

Some terms incorrectly highlighted in complex SpanQuery

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 5.3
    • Fix Version/s: 7.3
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Modassar Ather initially raised this on LUCENE-5205. I'm opening this as a separate issue.

      If a SpanNear is within a SpanOr, it looks like the child terms within the SpanNear query are getting highlighted even if there is no match on that SpanNear query...in some special cases. Specifically, in the format of the parser in LUCENE-5205 "(b [c z]) d\"~2", which is equivalent to: find "b" or the phrase "c z" within two words of "d" either direction

      This affects trunk.

        Attachments

        1. LUCENE-6796-testcase.patch
          3 kB
          Tim Allison

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: