使用acts_as_ferret很好解决了站内搜索的问题.
但问题也来了,经常莫名出现类似:
Ferret::FileNotFoundError (File Not Found Error occured at <except></except>:117 in xpop_context Error occured in fs_store.c:329 - fs_open_input tried to open "/article/public/../config/../index/production/news/_kg_2.del" but it doesn't exist: <no></no>or directory>
参考了javaeye中帖子
http://www.iteye.com/topic/115185
目前的问题是:
ruby script/ferret_server -e production start
no such file to load -- /usr/bin/../config/environment
有没有什么解决方法?