ruby on rails - simple OR search with attributes in thinking-sphinx? -
is possible perform simple "or" search in thinking-sphinx? here small example in pseudocode.
define_index ... has :attr_a, :attr_b end object.search @q, :conditions => {...some cond...}, :with => {:attr_a => value_a or :attr_b => value_b}
thanks
it possible, though it's little more complicated queries - you'll need use sphinx's select query work through it. docs cover situation.
Comments
Post a Comment