Okay, all makes sense then.

There is a :with_all option, which could do what you want - although  
granted, i've not tried it with arrays of arrays:
   Tree.search 'sapling', :with_all => {:variety => [[1,2], 3]}

Could be worth a shot.

-- 
Pat

On 30/07/2009, at 9:51 AM, elijah wrote:

>
> Elijah wrote:
>>> Tree.search 'sapling', :with => [['variety', [1, 2]], ['variety',
>>> [3]]]
>
> Pat Allan wrote:
>> Ah, I understand now. So why not use the hash, though?
>
> Well, this doesn't work, because the keys collide:
>
> Tree.search 'sapling', :with => {:variety => [1,2], :variety => [3]}
>
> And this doesn't work, because the attr becomes the hash, and the val
> is empty:
>
> Tree.search 'sapling', :with => [ {:variety => [1,2]}, {:variety =>
> [3]} ]
>
> Maybe there is some other method you have in mind? True, the nested
> arrays are ugly, but they create multiple Filters nicely.
>
> -elijah
> >


--~--~---------~--~----~------------~-------~--~----~
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