lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 33389] - [PATCH] Highlighter: Delegate output escaping to Formatter
Date Thu, 03 Feb 2005 20:13:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33389>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33389





------- Additional Comments From markharw00d@yahoo.co.uk  2005-02-03 21:13 -------
How about keeping the existing Formatter interface and making the Highlighter 
class encode then pass strings to the formatter. 
The highlighter can have a new setEncoder() method to set a configurable 
choice of Encoder implementation (with your simple one as the out-of-the-box 
default implementation). This may be more optimised because the Highlighter is 
in a position to pick and choose which sections of the text need encoding 
(because it selects the best bits).
This centralized selection of encoder is probably a bit neater too.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message