Thibaut Barrère wrote:
> what's your current approach when dealing with tags ?
> 
> It looks like two ways are mentioned on the list:
> 
> tags.name, :as => "tags"
> 
> or using MVA:
> 
> has tags(:id), :as => :tag_ids
> 
> I'm a bit curious here: which approach are you using ? Do facets work
> with both ?

I'm using the second approach and it seems to be working well. If your
tagged items might have *lots* of tags, 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)

> Also it seems that part of the available tagging plugins
> (acts_as_taggable_*) do not mix well with the way we index document in
> sphinx. I'd be curious to hear from you: did you implement your own
> stuff, or is there a plugin which is known to work out of the box ?

I haven't used acts as taggable before. In what way does its data model
not suit TS? My tags are just implemented in the app. Not through any
special need, it just seemed relatively simple.

-- James Healy <jimmy-at-deefa-dot-com>  Mon, 06 Jul 2009 23:04:57 +1000

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