起因:
有一文章系统,用acts_as_ferret做了全文检索,在搜索时并无问题,但在浏览者有评论时按要求去更新文章相关的最后评论时间等字段时就会发生如下错误
ruby 代码
- Ferret::FileNotFoundError (File Not Found Error occured at <except.c>: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 such file or directory>
- ):
看起来是因为Ferret不能正确更新检索导致的,看了acts_as_ferret的文档说是要是Drb来解决,但不知道这个Drb怎么使用
希望大家帮助一下
本文讨论了一个使用acts_as_ferret实现全文检索的文章系统遇到的问题:在更新文章的评论时间字段或创建新文章时,系统会出现文件未找到错误。文章探讨了可能的原因,并寻求如何利用DRb来解决Ferret的更新问题。
2454

被折叠的 条评论
为什么被折叠?



