Hi Grigory Once you've created a new record, can you then fire up a mysql connection on the command line and check what the stored value is?
mysql --host 127.0.0.1 --port 9306 SELECT * FROM discount_core; -- Pat On 19/09/2013, at 11:06 PM, Grigory Sapunov wrote: > Hello, > > I'm using thinking-sphinx (3.0.5) and created a realtime index. It works > well, newly created records appear in search automatically, but I have a > strange effect with sort attribute. > > Here is my index config: > > ThinkingSphinx::Index.define :discount, :with => :real_time do > indexes description > indexes name > indexes terms > indexes place > indexes updated_at > > has updated_at, :type => :timestamp, :as => :updated_at_sort > has begin_date, :type => :timestamp > has exp_date, :type => :timestamp > has named, :type => :boolean > has type, :type => :integer > has user_id, :type => :integer > has security_mode, :type => :integer > has category_id, :type => :integer, :multi => false > end > > I'm searching for records using :order => "updated_at_sort DESC". And newly > created record appears at the end of the list, not at the top. If I do "rake > ts:regenerate" it moves to the top of the list. > > Did I forget something to do? Or is it a bug/feature? > > Thanks in advance. > > Best regards, > Grigory Sapunov > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/groups/opt_out.
