Thank you Pat for the answer. I am going to try upgrading to the latest version of TS and see how things go !
Julien On Mar 12, 5:59 am, Pat Allan <[email protected]> wrote: > Hi Julien > > It's definitely recommended that indexes for the same model have the same > fields and attributes (even if the definitions of those fields and attributes > are different). At the very least, ensure you have the same attributes in > both, you might not *need* the same fields. > > Also, TS has only recently *reliably* supported multiple indexes, so I > recommend upgrading your version of TS. Also, when you do, you will need to > give the additional indexes explicit names: > > define_index 'foo' do > # ... > end > > Cheers > > -- > Pat > > On 11/03/2010, at 7:52 PM, Julien Palmas wrote: > > > > > Hi all, > > > My version of TS is 1.1.5 (I know, pretty old) used as a plugin > > > I recently realized that one could add more than one "define_index" > > block in a model. > > I would like to do this because I need a "where" condition in one > > index, but not in the other. > > > Here is a gist of my Firm model : > >http://gist.github.com/328968 > > > But when indexing, I get this error : > > ERROR: index 'firm_core': incompatible schemas: attribute count > > mismatch: 4 in schema 'firm_core_1', 9 in schema 'firm_core_0'. > > > Do I always have to specify the same attributes in different indexes ?? > > > -- > > 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.
