Thanks for the reply Pat.
1426221836 is for Activity. I found the value while debugging in
Aptana.
When there are no activities in the system, Sphinx should not return
any results when am searching for Activity. But it returns null.
Also, i checked the CRC code for 'Activity' and 'Chapter' at
http://webnet77.com/cgi-bin/helpers/crc.pl
They are different values than what is generated by Ruby. Is that the
catch?

When i remove the following two lines, it works correctly! But i do
need to have those attributes.
has modulable.chapter_type, :type => :integer, :as
=> :chapter_type, :sortable => true
has modulable.objectives, :type => :integer, :as
=> :activity_objectives, :sortable => true

How can i define these fields? I tried the following but did not work :
(
has modulable.chapter_type, " WHERE MODULABLE_TYPE='Chapter' ", :type
=> :integer, :as => :chapter_type, :sortable => true
has modulable.objectives, " WHERE MODULABLE_TYPE='Activity' ", :type
=> :integer, :as => :activity_objectives, :sortable => true

Any ideas?
Thanks,
Pratik
--~--~---------~--~----~------------~-------~--~----~
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