While playing around with one of my development SOLR installations (this time under Windows), I suddenly got a weird error message when feeding data to one of the fresh cores.
SEVERE: java.lang.RuntimeException: java.io.FileNotFoundException: no segments* file found in org.apache.lucene.store.SimpleFSDirectory@C:\temp\solr\*\data\index: files:
Taking a look at the contents of the index\ directory, it was in fact empty. Seems weird, but my initial guess was that Lucene / SOLR would treat this as a new installation and create the files.
Turns out the issue is that it won’t – as long as the index directory exists, Lucene / SOLR goes looking for the segment files.
Thanks to an old post to the solr-dev list by Yonik, the easiest fix is to simply delete the index directory and restart your applet container (Tomcat in this case).
Thank you! This saved my day
This saved my day too! :)
Thanks a lot for posting this. I would have spent hours trying to find what’s the problem.
wow, nice one. was banging my head.
thanks for that!
I can only say that I think I love you :) This saved my day. It is indeed annoying. I may have to submit a patch.
Thanks for this. Would never have figured this out on my own
Oh dear! Sometimes the solution is so simple.
You saved my day.
Cheers to this one. I emptied my index directory and restarted Apache without anything happening. The solutions was to simply delete the whole index folder! :-)
Thanks. it helps me to save a lot of time ;)
At least this will save my second day! :-) Thanx!
Thanks!! This was the solution I needed!!
Thanks, saved me some hours
Thank you~!!!! Saved me lots of hours~!
You’ve saved a lot of peoples’ days! Mine included, thanks.
Ditto Rodney! You rock! This has been driving me nuts!!!!!
You saved my day!!!! Thanks a lot.
Saved my day too – tried deleting the whole “data” directory; tried clearing the “index” dir of files; but didn’t think to leave an empty “data” directory…
Thanks!
Thanks for this post, it solved my issue too!
Thanks a lot bro.
Thanks a lot for this post :)
Saved my day! Thank for that
Oh Lord! This saved my entire week! Cheers man.
Another day saved. Thanks mate !
I agree with the previous commenters: Thank you.
Over 3 years later and you just saved me an untold amount of time and a bunch of cranky testers. Thanks!
Honorable mention to Google for turning this up first. ^_^
Thanks a million! This was very helpful!
Thanks. I don’t normally comment but you saved me.
Thanks a lot, this tips help me at my work!
이거다… 이게 답이다…
Not working for me.