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

Improve match highlighter behavior for degenerate intervals (on non-existing positions)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • New

    Description

      Interval functions can produce match spans on non-existing or otherwise degenerate token positions. For example,

      extend(foo 5 5)
      

      would create an interval to the left and right of each term foo, regardless of whether such positions actually exist in the token stream.

      This issue improves match highlighter to still work in such cases. This is actually fun to play with as you can highlight and visualize actual interval spans even for functions that expand or manipulate other sources' context.

      Attachments

        Issue Links

          Activity

            People

              dweiss Dawid Weiss
              dweiss Dawid Weiss
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m