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

FastVectorHighlighter Overlapping Proximity Queries Do Not Highlight

    Details

    • Lucene Fields:
      New, Patch Available

      Description

      If a proximity phrase query overlaps with any other query term it will not be highlighted.

      Example Text: A B C D E F G

      Example Queries:

      "B E"~10 D
      (D will be highlighted instead of "B C D E")

      "B E"~10 "C F"~10
      (nothing will be highlighted)

      This can be traced to the FieldPhraseList constructor's inner while loop. From the first example query, the first TermInfo popped off the stack will be "B". The second TermInfo will be "D" which will not be found in the submap for "B E"~10 and will trigger a failed match.

        Attachments

        1. lucene-4734.patch
          9 kB
          Ryan Lauck
        2. LUCENE-4734.patch
          22 kB
          Adrien Grand
        3. LUCENE-4734-2.patch
          6 kB
          Adrien Grand

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rlauck Ryan Lauck
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: