Christine Poerschke created LUCENE-10523:
--------------------------------------------

             Summary: facilitate UnifiedHighlighter extension w.r.t. 
FieldHighlighter
                 Key: LUCENE-10523
                 URL: https://issues.apache.org/jira/browse/LUCENE-10523
             Project: Lucene - Core
          Issue Type: Wish
            Reporter: Christine Poerschke
            Assignee: Christine Poerschke


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: pull-request-link-to-follow

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: link-to-follow
 ** i.e. at document search time remove any HTML markup prior to highlight 
snippet extraction



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to