Re: problem in indexing documents

2007-12-25 Thread Doron Cohen
> > >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

Re: problem in indexing documents

2007-12-25 Thread Erick Erickson
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