Hi Luciano

>From what I can see from the acts_as_taggable source, it adds the
association tags (either as a has_many or has_and_belongs_to_many), and
the Tag model, by default, should have a name column. So, to index the
tags in your model, you'd add something like the following to your
define_index block:

  indexes tags(:name), :as => :tags

Hope this helps.

Cheers

--
Pat

On 8/31/2010, "Luciano Sousa" <[email protected]> wrote:

>hello, guys.
>
>i want a suggestion for indexes the tags to my model.
>whats the relationship use?
>
>any link with suggestion is accept.
>thanks.
>
>--
>att: Luciano Sousa
>http://www.lucianosousa.net
><http://www.lucianosousa.net>http://twitter.com/lucianosousa
>*Ruby on Rails Developer
>*Linux User #456387
>*Contato: (21) 7639-5049
>
>--
>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.
>

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