[ 
https://issues.apache.org/jira/browse/LUCENE-8401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16545682#comment-16545682
 ] 

David Smiley commented on LUCENE-8401:
--------------------------------------

Along the idea of reusable components, adding a PassageFormatter would be good 
too.  You could take the one from the UH.  I enhanced it a little in the PR for 
LUCENE-8286.  A reusable PassageScorer may be problematic until some time or 
might not ever bee if it's too highlighter specific.

The UH could be changed in 8.0 to use the new common components.

> Add PassageBuilder to help construct highlights using MatchesIterator
> ---------------------------------------------------------------------
>
>                 Key: LUCENE-8401
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8401
>             Project: Lucene - Core
>          Issue Type: New Feature
>          Components: modules/highlighter
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>         Attachments: LUCENE-8401.patch
>
>
> Jim and I discussed a while back the idea of adding highlighter components, 
> rather than a fully-fledged highlighter, which would allow users to build 
> their own specialised highlighters.  To that end, I'd like to add a 
> PassageBuilder class that uses the Matches API to break text up into passages 
> containing hits.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to