/ Published in: Rails
Expand |
Embed | Plain Text
products = ThinkingSphinx::Search.search(searchtext, { :with => { :enabled => true, :dummy => false, :visible => true, :in_stock => true, #:category_standard => true, #:standard => true, :store_id => 1 }, :without => { # skip PTrans store, FC tickets, and FC store :category_id => [0, 29, 31, 46] }, :classes => [ Product ] }.merge(options)) categories = ThinkingSphinx::Search.search(searchtext, { :without => { # skip PTrans store, FC tickets, and FC store :category_id => [0, 29, 31, 46] }, :classes => [ Category ] }.merge(options)) return products + categories
You need to login to post a comment.
