Unfortunately Sphinx's logic with multiple filters is AND - there's no  
way to switch it to OR. The only way around this is to combine both  
attributes into a single one (if that's possible in your scenario).

-- 
Pat

On 25/11/2009, at 8:51 AM, pmlarocque wrote:

> Hello,
>
> Can't figure out to query the following :
>
> MyModel.search "" , :conditions => { :level => option1, :level =>
> option2 }, :with => {:option_spec_id => option2.spec.id }
>
> The point is option1 and option2 are mutually exclusive by default. I
> want everything that correspond to option1 and the one that correspond
> to options 2 but only for the given spec.
>
>
> Hope I was clear enough!
>
> Thanks!
>
> --
>
> You received this message because you are subscribed to the Google  
> Groups "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected] 
> .
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en 
> .
>
>

--

You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.


Reply via email to