Hi Martin Unfortunately, this side of TS needs some work. While you can have indexes on STI subclasses, subclasses with different tables don't work yet. It is on my list, though (there's an existing issue noted on GitHub).
In the meantime, I'm not really sure how best to handle this... I'm currently focused on DataMapper support, but hopefully later in this week we're coming up to I'll have that at a stable point and get back into some other larger bugs/features like this one. Sorry for the hassle. -- Pat On 05/12/2009, at 6:40 AM, Martin Sarsale wrote: > Dear All (and Pat :) > > I have a table with active Items and a 2nd one with ArchivedItems > (same table structure). > > class Items < Activerecord::Base > define_index do ... end > end > > class ArchivedItems < Items > set_table_name :archived_items > end > > I would like to have 2 indexes, one for Items and another one for > ArchivedItems, but when I run rake ts:config only the configuration > for Items is generated, ArchivedItems is skipped because it doesn't > contains a define_index. > > If I copy and paste the index definition from Items to ArchivedItems > I end up with a configuration that include Items and Archived items, > but also includes a -wrong- duplicated definition for "items_delta". > > Am I missing something? If this is supposed to work? > > Thanks! > > -- > Martin Sarsale > msn: [email protected] > jabber: [email protected] > twitter: http://twitter.com/runixo > linkedin: http://www.linkedin.com/in/msarsale > sumavisos: http://www.sumavisos.com > blog: http://runa.tumblr.com > > -- > > 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.
