On 4/10/07, James Kim <[EMAIL PROTECTED]> wrote: > Hi, Dave. > > I'm very thanks for your kind explanation and I got it. > (I was very pleased when I bought your shortcut, it's very very > useful..) > > Anyway I have two more question. > > 1. Is there any difference between extending TokenStream class > and just using CustomTokenFilter only without extending TokenStream?
No, currently there is no difference and therefore there is no need for you to extend TokenStream. I may extend the TokenStream class in the future making it necessary or at least advantageous to extend it but I can't see how or why I would do this at the moment. At any rate, I'll give plenty of warning if I do make it necessary to extend TokenStream so it is up to you if you want to. > 2. What exactly the text=() method's purpose? > In Lucene, as I know, there is no method of that name. > What's the matter when I didn't implement this method? It was an unnecessary "optimization". It allows you to use a single TokenStream to tokenize multiple strings. As of Ferret 0.11.4, Ferret shouldn't use it anymore (although it does still get used in the unit tests) so you should be able leave it out of your implementation. If you do run into problems by not implementing the text=() method then it is a bug so please let me know. -- Dave Balmain http://www.davebalmain.com/ _______________________________________________ Ferret-talk mailing list [EMAIL PROTECTED] http://rubyforge.org/mailman/listinfo/ferret-talk

