Hi, here i am again :)
I'm playing with sphinx and thinking_sphinx and i've to index a
nested_set (using the better nested set plugin).
I've the classic structure and i'd like to index the category id of an
article and all its parents (something like:
article.category.self_and_ancestors.map(&:id) ). As sphinx doesn't
talk with the model i can't use the self_and_ancestors method, so i
think that a where condition like: "where lft <= self.lft and rgt >=
self.rgt" should work. But i actually don't know how put a similar
condition and how to set the "self.lft" and "self.rgt", and also
selecting just the id of the categories. I think that sphinx should
recognize it as a mva, doesn't it ?
Thank you
--~--~---------~--~----~------------~-------~--~----~
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