我是铁轨上的红宝石新手,我正在玩Sunspot_Rails Gem。
我的gemfile看起来像这样
gem "sunspot_rails"
group :development do
gem 'sqlite3', '1.3.8'
gem 'better_errors'
gem 'binding_of_caller'
gem 'sunspot_solr'
end
我按照github上的说明快速启动。我用
开始solrbundle exec rake sunspot:solr:start
然后我启动我的rails服务器。
rails s
页面加载,但是当我尝试通过localhost添加类的实例时,我收到错误
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
我在互联网上看到的唯一与此相关的是
http://www.garysieling.com/blog/fixing-solr-error-no-segments-file-found-in-nrtcachingdirectory
我到底做错了什么?
...谢谢
答案 0 :(得分:0)
如果您收到此错误 - 只需清理并重新安装..固定的