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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -