One way:
before_save :cache_tags
def cache_tags
self.cached_tags = tags.join(' ')
end
And index the cached_tags field. Or you could join the tags in if you
want, but that will become painful when you get a lot of data.
On Aug 14, 9:33 am, James <[email protected]> wrote:
> Hi guys,
>
> I'd just like to find out if anyone has any recommendations on how to
> add tagging to models and still have them be searched by
> thinking_sphinx?
>
> I'm working with 'acts_as_taggable_on' at the moment, but not really
> making any progress. If need be I can strip the tagging support, but
> I'd like to at least give it a shot.
>
> Thanks in advance!
>
> James
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---