Re: IndexWriter in 3.5

2012-02-09 Thread Ian Lea
Yes, this changed at some point. In recent releases nothing is written to the index unless you close(), or maybe commit(), the writer. -- Ian. On Thu, Feb 9, 2012 at 12:02 PM, Ganesh wrote: > Hello all, > > In 3.0.3 the following code works fine but in 3.5, it throws exception "No > segments

IndexWriter in 3.5

2012-02-09 Thread Ganesh
Hello all, In 3.0.3 the following code works fine but in 3.5, it throws exception "No segments found". In case of 3.0.3, Just creating writer will create files, segments.gen, segments_1 and write.lock. In case of 3.5, only write.lock is created. Create Index Writer Open Reader Add documents