If you get this error - just clean and fresh install..fixed fo rme
Solr Error "no segments* file found in NRTCachingDirectory"
-
25-06-2023 - |
Question
I'm new to ruby on rails, and I am toying around with the Sunspot_Rails Gem.
My gemfile looks like this
gem "sunspot_rails"
group :development do
gem 'sqlite3', '1.3.8'
gem 'better_errors'
gem 'binding_of_caller'
gem 'sunspot_solr'
end
I followed the instructions on github for quick start. I start solr with
bundle exec rake sunspot:solr:start
Then I start my rails server.
rails s
The pages load, but when I try to add an instance of a class through localhost, I get an error
RSolr::Error::Http at /dogs
RSolr::Error::Http - 500 Internal Server Error
Error: {'responseHeader'=>{'status'=>500,'QTime'=>3},'error'=>{'msg'=>'no segments* file found in NRTCachingDirectory(org.apache.lucene.store.NIOFSDirectory@/Users/ShiftedRec/whosthedee/solr/development/data/index lockFactory=org.apache.lucene.store.NativeFSLockFactory@170ad173; maxCacheMB=48.0 maxMergeSizeMB=4.0): files: [write.lock]','trace'=>'org.apache.lucene.index.IndexNotFoundException: no segments* file found in
The only thing i've seen that on the internet that relates to this is
http://www.garysieling.com/blog/fixing-solr-error-no-segments-file-found-in-nrtcachingdirectory
What the heck am I doing wrong?
Thanks...
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow