On Tuesday 08 January 2008 00:52:35 Developer Developer wrote: > here is another approach. > > StandardAnalyzer st = new StandardAnalyzer(); > StringReader reader= new StringReader("text to index..."); > TokenStream stream = st.tokenStream("content", reader); > > Then use the Field constructor such as
This is what I suggested, except that your code won't work in general because you might not be able to consume the tokens twice. Hence why I suggested wrapping it in a caching filter, so you can reset it and re-read them. Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]