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

facilitate UnifiedHighlighter extension w.r.t. FieldHighlighter

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 10.0 (main), 9.3
    • None
    • None
    • New

    Description

      If the UnifiedHighlighter had a protected newFieldHighlighter method then less getFieldHighlighter code would need to be duplicated if one wanted to use a custom FieldHighlighter.

      Proposed change: https://github.com/apache/lucene/pull/821

      A possible usage scenario:

      • e.g. via Solr's HTMLStripFieldUpdateProcessorFactory any HTML markup could be stripped at document ingestion time but this may not suit all use cases
      • e.g. via Solr's hl.encoder=html parameter any HTML markup could be escaped at document search time when returning highlighting snippets but this may not suit all use cases
      • extension illustration: https://github.com/apache/solr/pull/811
        • i.e. at document search time remove any HTML markup prior to highlight snippet extraction

      Attachments

        Activity

          People

            cpoerschke Christine Poerschke
            cpoerschke Christine Poerschke
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 20m
                1h 20m