Sorry for posting so many messages, but I need it badly and I had only
few moments to check available options (deadlines are killing me ;-).

I've found this:
http://www.sphinxsearch.com/forum/view.html?id=2979

I will try "fake keywords" approach (and I hope someone will add that
to sphinx...).

On Feb 9, 12:33 am, Piotr Sarnacki <[email protected]> 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