Hi James,
> I'm using the second approach and it seems to be working well. If your
> tagged items might have *lots* oftags, you may need to add the
> ":source => :query" option to your attribute definition.
>
> I haven't tried combining facets with my MVAs. All of my facets are
> boolean (products under $10, products on special, etc)
actually my items would not have a lot of tags.
I finally installed acts_as_taggable_on_steroids, but I have a limited
success. I added:
define_index do
indexes title
indexes summary
indexes source, :facet => true
indexes tags(:name), :as => 'tags'
end
Which makes it possible to issue calls like Item.search("keyword") and
have TS find it if it's in the tags.
But it seems that doing Item.search(:conditions => { :tags =>
'keyword' }) doesn't return anything :/
If I add :facet => true on tags, I get more errors (NoMethodError:
undefined method `error' for nil:NilClass from ./config/../gems/
thinking-sphinx/lib/thinking_sphinx/search.rb:280:in `search').
Anyway - I think I need to grab a more recent copy of ThinkingSphinx
and see if it changes my issue.
If anyone has got facets working with acts_as_taggable_on_steroids,
I'd love to hear from you.
Thanks for the feedback James - if I cannot get things to work with
this plugin I'll cook my own like you did!
-- Thibaut
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---