i read
thread https://groups.google.com/forum/#!topic/thinking-sphinx/grr35n6Udo4
and have an idea. Can we trigger the index new record (check by time) in a
cron tab.
So every 5 minutes, get all user created in that time span and
indices =
ThinkingSphinx::Configuration.instance.indices_for_references(:user)
indices.each do |index|
ThinkingSphinx::RealTime::Transcriber.new(index).copy user
end
On Thursday, October 10, 2013 9:16:47 AM UTC+7, Pat Allan wrote:
>
> This one's tricky - my understanding is that Sphinx applies changes within
> the current connection (and perhaps new connections), but Thinking Sphinx
> persists connections per thread, so the connection on server two isn't ever
> getting reconnected and thus becoming aware of the new results.
>
> Perhaps it's worth asking on the Sphinx forum how they recommend handling
> persistent connections and real-time index updates with multiple web
> servers?
>
> --
> Pat
>
> On 08/10/2013, at 9:23 PM, Duy Vo <[email protected] <javascript:>>
> wrote:
>
> Hi,
> I have 2 web server for balancing which have thinking sphinx run on them.
> The problem is I use realtime index, so if a request was handle by server
> 1, ts on server 1 got new record. But ts on server 2 don't get callback
> where record created so I can't search it on server 2. How can I solve this?
>
> --
> 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] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> 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.