Hi Pat, Thanks for getting back on this. I am not using the DSL for generating my sphinx configuration file because I don't think the query I need can be produced with it. I ended up adding the proper sphinx_internal_class to the query (and added the sql_attr_string line for it as well) and now everything is working just fine.
Thanks, Zack On Fri, May 4, 2012 at 11:25 PM, Pat Allan <[email protected]> wrote: > Hi Zack > > Have you run rake ts:rebuild since updating? > > -- > Pat > > On 05/05/2012, at 4:35 AM, zackham wrote: > > > We just updated to Rails 3.1 and TS 2.0.11 and are working through > > issues. sphinx_attributes is nil on results coming back from TS, so > > after investigating it looks like the cause is the class crc does not > > match because of this line: > > > > class_crc = object.class.to_crc32 if Riddle.loaded_version.to_i < 2 > > In context: > https://github.com/freelancing-god/thinking-sphinx/blob/master/lib/thinking_sphinx/search.rb#L528 > > > > I ran mysearch.instance_variable_get('@results') and confirmed the crc > > in that array is the int result of to_crc32, but due to this > > conditional assignment of that int crc, the value defaults to > > object.class.name which does not match... > > > > I am going to patch locally but was hoping for some insight into why > > this is the case, and if there is a better solution than just removing > > that condition. > > > > Thanks, > > Zack > > > > -- > > 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. > > -- 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.
