2013-10-16 48 views

回答

2

指數的定義有where方法適用條件生成的SQL的指標:

ThinkingSphinx::Index.define :user, with: :active_record do 
    indexes name 

    where "users.guest = FALSE" 
end 
相關問題