Hi Piotr

I'll be spending the next 24 hours in transit from Cambodia to  
Australia, so I'm not going to be much help. That said, Riddle 0.9.9  
should support select (ie: client.select), so you'll just need to add  
something to TS - it's a shame :select is already taken as a pass- 
through for ActiveRecord.

Also, to answer your first question, I recently added :with_all for  
matching multiple MVA values... so,
Article.search :with_all => {:tag_ids => [1,5]}

Cheers

-- 
Pat

On 09/02/2009, at 6:33 AM, Piotr Sarnacki wrote:

>
> I've found info about SetSelect since 0.9.9 : 
> http://www.sphinxsearch.com/faq.html#filter-or
>
> I couldn't find any reference to this one in riddle's nor thinking
> sphinx's docs, so I suppose it isn't implemented yet. I'll try to add
> it myself, unless someone have done it or begun already. Anyone? :)
>
> On Feb 8, 2:21 pm, Piotr Sarnacki <[email protected]> wrote:
>> Hi,
>>
>> I want to add search feature with advanced filtering (lots of
>> has_many :through and has_many attributes). It's slow and definitely
>> not fun with SQL (joins are killing me ;-).
>>
>> With such an index:
>>
>> define_index do
>>   indexes :name
>>
>>   has tags(:id), :as => :tag_ids
>> end
>>
>> query like Article.search(:conditions => {:tag_ids => [1]}) works  
>> well
>> - it gets only articles joined with tag with id 1. But with
>> Article.search(:conditions => {:tag_ids => [1,5]}) it gets articles
>> with tag 1 *or* tag 5. Is there any way to filter articles to leave
>> only articles having both tags 1 and 5?
> >


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