[
https://issues.apache.org/jira/browse/LUCENE-10197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453674#comment-17453674
]
David Smiley commented on LUCENE-10197:
---------------------------------------
I think this could be back-ported to 9.x so long as we retain the current API.
Removed methods (e.g. setters) stay but become deprecated; so would the
constructors. Its not *quite* that simple though... the flags computation
needs to be as it is already on 9x instead of moved off to the builder.
> UnifiedHighlighter should use builders for thread-safety
> --------------------------------------------------------
>
> Key: LUCENE-10197
> URL: https://issues.apache.org/jira/browse/LUCENE-10197
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/highlighter
> Reporter: Animesh Pandey
> Priority: Minor
> Labels: newdev
> Attachments: LUCENE-10197.patch
>
> Time Spent: 5h 50m
> Remaining Estimate: 0h
>
> UnifiedHighlighter is not thread-safe due to the presence of setters. We can
> move the fields to builder so that the class becomes thread-safe.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]