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

Unified highlighter can fail to highlight fuzzy query

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 8.7
    • modules/highlighter
    • None
    • New, Patch Available

    Description

      If a fuzzy query corresponds to an exact match (for example it has with maxEdits: 0), then the unified highlighter doesn't produce highlights for the matching terms.

      I think this is due to the fact that when visiting a fuzzy query, the exact terms are now consumed separately from automata. The unified highlighter doesn't account for the terms and misses highlighting them.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jtibshirani Julie Tibshirani
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 1h 10m
                  1h 10m