Hi Pratik Can you share your index definition? Also, how are you updating the TextMessage records via your cron process? Is it in a manner that will fire ActiveRecord callbacks? And is this the only model you have with a Sphinx index?
Cheers — Pat > On 2 Jul 2016, at 1:45 PM, pratik ganvir <[email protected]> wrote: > > Hi, > > So I have a model called TextMessage which has attributes id and user_id. I > am using real time indices. > There is one cron process that updates the status field of TextMessage > records. When it does that, following query returns 2 records for each > database record. > > TextMessage.search(with: {user_id: current_user.id},order: 'created_at > desc',page: params[:page], per_page: 10 ) > > When I rebuild the index then everything goes fine. But considering the fact > that I am using realtime indices I do not want to rebuild indexes everytime. > > Please help me to get through this. > > Thanks and regards, > Pratik > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/thinking-sphinx > <https://groups.google.com/group/thinking-sphinx>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 https://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
