lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark harwood <markharw...@yahoo.co.uk>
Subject Re: Term highlighting and Term vector patch
Date Thu, 16 Sep 2004 10:16:02 GMT
>>You always have to maintain two versions of the highlighter ....
 
This shouldn't be necessary, the highlighter code works with any TokenStream - this should
offer a suitable abstraction from the source of data (reanalysis or stored offsets).
The only thing you would need to do would be to provide a TokenStream subclass that read offset
info from the disk. (Not sure why TokenStream isn't an interface).
 
Cheers
Mark

		
---------------------------------
 ALL-NEW Yahoo! Messenger - all new features - even more fun!  
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message