Hi David

Not sure why this isn't returning the right records - perhaps wrap the colour 
values in parentheses?

  :conditions => {:color => "(red | blue)"}

Also - if you're using conditions, you don't need to specify match_mode to be 
extended - it's done for you (no other way to match on particular fields.

Cheers

-- 
Pat

On 11/08/2011, at 11:00 PM, David Krmpotic wrote:

> Hello,
> 
> I'd like to search on a field, but include a boolean expression, for
> example:
> 
> {:match_mode=>:extended, :conditions=>{:color=>"red |
> blue"}, :retry_stale=>true, :page=>1, :per_page=>10}
> 
> Let's say that I have 15 red records and 10 blue records.
> 
> This should return 25 records, but it doesn't. The way it works for me
> is that it only takes into account the first specified value (red in
> this case) and only 15 red records are returned.
> 
> How to make this work?
> 
> Thank you!
> david
> 
> -- 
> 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