Hi Simon, I'm trying to reuse a custom analyzer and it's not working unless I manually call reset() on the TokenStream. Basically the analyzer will work on the first string, but complete fail on any string after that. The weird part is that this is only necessary when using the SynonymFilter.
I wrote a short piece of code that shows what's going on. Let me know if you want me to post the code. But it's more likely that I don't understand what I'm doing - I am new to Lucene. Thank you, -ricardo -- View this message in context: http://lucene.472066.n3.nabble.com/Is-creating-an-analyzer-expensive-tp3994731p4001878.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org