lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <emailg...@yahoo.co.in>
Subject IndexWriter in 3.5
Date Thu, 09 Feb 2012 12:02:10 GMT
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

I need to do this. When the application starts, I have my writer and reader ready. I have
a thread which crawls the filesytem and adds it to index and another one performs search.
Is this intentional?

Regards
Ganesh



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message