>
> >document.add(new Field("contents",sb.toString(),
> > Field.Store.NO, Field.Index.TOKENIZED));
>
In addition, for tokenized but not stored like here, the Field()
constructor that takes a Reader param can be handy here.
Regards, Doron
It's more helpful to indicate what error you're receiving or
what your perceived problem is. Without that, we can only
guess...
But one thing wrong is that you keep appending to the
same StringBuffer forever, so your first writer.AddDocument
adds document 1. Your second adds the text of BOTH doc