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