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