Hi Pat, Thanks for your quick reply! I think I'll duplicate the indexing code for now.
Cheers, Graham On Aug 6, 2:15 am, Pat Allan <[email protected]> wrote: > Hi Graham > > Unfortunately, since this isn't an STI situation, there's no way to > make this work without running define_index for each of the models. If > you want to patch TS to change that, be my guest, but I think it's not > worth the hassle. > > -- > Pat > > On 06/08/2009, at 1:15 AM, Graham Glass wrote: > > > > > > > Hi everyone, > > > I have concrete classes A, B and C that share an abstract base class D > > (flagged with abstract_class? returning true). Each of the concrete > > classes has the fields "name" and "description" and separate database > > tables "a", "b" and "c". > > > I tried putting: > > > define_index do > > indexes name, :sortable => true > > indexes description > > end > > > into the abstract base class hoping that sphinx would automatically > > index A, B and C using these fields, but instead I get an error saying > > that the database table for D doesn't exist. Is there a way to make > > this work, or do I need to repetitively add the define_index into each > > of the concrete classes? > > > Thanks! > > Graham --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
