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

problem in indexing documents

2007-12-25 Thread Liaqat Ali
hello, I am try to make an index of 191 documents stored in 191 text files. I developed a program, which works well with files containing single line, but files with multiple lines posing a problem.So i added while loop to completely extract data from each document. But it has some logical er