有沒有方法可以將ActiveRecord語法和方法與由Sunnspot提供的results
對象集成?Rails Solr與ActiveRecord的太陽黑子集成
例如,Post.where(...).search{fulltext 'pizza'}.results
不過濾我的where(...)
條款的結果,Post.search{fulltext 'pizza'}.results.where(...)
回報NoMethodError: undefined method 'where' for #<Sunspot::Search::PaginatedCollection:0x007fe9b388bd88>
沒有索引的一切,有沒有辦法來協調我有一個ActiveRecord查詢太陽黑子搜索?我的一些AR濾鏡太複雜,不能簡單地用Sunspot的首選語法重寫。