开发者

Act as ferret doesn't show results, problem with index

I installed act_as_ferret plugin according to this tutorial http://opensoul.org/2008/4/29/using-shared-indexes-with-acts_as_ferret. How开发者_开发技巧ever I'm not seeing any results.

When I dug further, here is what I see in my act_as_ferret log file link text

I'm guessing for some reason its not indexing properly. I deleted my index file couple times and still nothing. Any help is appreciated. Thanks


well brother... i'm here to say two things that may make your day. One is to seriously consider Thinking Sphinx. I've had a blog post that got wiped out regarding that post, as i used it for like 2 years (aaf and shared indexes). Thinking sphinx is more 'better'.

unless you can do one, then i assume you are forced to use aaf. i suggest it has to do with how you are starting/stopping the ferret server.

Here is what worked for me, as it is literally magic...

  1. stop the ferret server
  2. Restart passenger/mongrel
  3. start the ferret server
  4. do a search in your app (actually search for something and hit submit)
  5. Delete the /index directory, like all of it
  6. Do another search and it should work

Lame as it is, just remember that Thinking Sphinx is capable of doing what you want with shared indexes.


Did you try rebuilding the Ferret index?

$ export RAILS_ENV=production
>> ./script/console
>> Product.rebuild_index

Replace Product with your Model name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜