简体   繁体   English

带有思想狮身人面像的炼油厂CMS

[英]Refinery CMS with Thinking Sphinx

I use thinking sphinx in my project on refinery cms. 我在炼油厂cms的项目中使用了思维狮身人面像。 And I received this error when try to update any page: 当尝试更新任何页面时,我收到此错误:

ArgumentError (wrong number of arguments (0 for 3)):

But when I create new page everything work fine. 但是当我创建新页面时,一切正常。

I override standard refinery page model and add standard thinking sphinx define_index method: 我重写了标准炼油厂页面模型,并添加了标准思想的狮身人面像define_index方法:

define_index do
    indexes title
    indexes parts.title, :as => :part_title
    indexes parts.content, :as => :part_content
    indexes parts.body, :as => :part_body
    indexes slugs.name, :as => :slug_name
end

And this is the reason of this problem, because when I commented this lines everything start working fine, but of course search stop working. 这就是这个问题的原因,因为当我评论此行时,一切都开始正常运行,但是搜索当然停止了。

What should I do to let them working together? 我应该怎么做才能让他们一起工作?

我认为shpinx与acts_as_indexed gem冲突,请尝试在模型中评论act_as_indexed。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM