Thanks for you answer.

I am a little confused by your beofre_filter comment. Would you not
want to use an after_filter so that once the model has been updated
you update the DB? I assume you mean the before_filter for
controllers.

On Apr 21, 8:31 am, James Healy <[email protected]> wrote:
> tashfeen.ekram wrote:
> > I am thinking that I can not index this directly since sphinx acts
> > directly with the db. I was thinking of creating a new column in the
> > table that would just hold all of the tags for each record for the
> > purpses of indexing. Is there a smarter way to do this?
>
> Your idea is probably the best way of doing it.
>
> It's fairly common to use a before filter on your indexed model to add in
> data for sphinxes use only. Things like de-normalised unicode strings
> and virtual attributes are prime candidates.
>
> -- James Healy <[email protected]>  Wed, 21 Apr 2010 22:17:07 +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 
> athttp://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