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

Some terms incorrectly highlighted in complex SpanQuery

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Duplicate
    • 5.3
    • 7.3
    • modules/highlighter
    • None
    • New

    Description

      modassar 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

              dsmiley David Smiley
              tallison Tim Allison
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: