Sphinx, ROR+Thinking Sphinx. Tell me the means of obtaining Delta index


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
46 views
Hello!

I want to tie to the school website search using Thinking Sphinx. Hitch arose at the stage of obtaining the Delta. I can not understand the subtleties of the ways of obtaining.

Doc: freelancing-god.github.com/ts/en/deltas.html

The problem is the following:

1. Have a way of getting Delta using Timestamp. To implement it in the dock you need to do:

set_property :delta => :datetime, :threshold => 1.hour
and then execute rake:
rake thinking_sphinx:index:delta

I have successfully executed the rake. Yes it works, but... now I need to run rake on Chrono?

2. Have a way of getting Delta using delayed_job gem. To implement it in the dock you need to do:
set_property :delta => :delayed
and then execute rake:
rake thinking_sphinx:delayed_delta

I have successfully executed the rake. But he's just hanging in the console (and I suspect — starts a background process indexing).

Does this mean that Delta indexing runs in the background in real time? Then how do you know that it works and if you run in the background how to know the PID of the process to kill it if necessary (to stop the Delta indexing)?

If anyone has implementation experience tell me how it works.

Thanks in advance.
The same school teacher Ilya aka Zayko.
by | 46 views

5 Answers

0 like 0 dislike
"Rake at Chrono". You're in a Russian school teacher?
\r
Maybe all, will be a periodic background merge to run?
by
0 like 0 dislike
Index and Delta exclusively for the crown. Or hands.
Rails Wei — whenever.
by
0 like 0 dislike
1. Estessno it is worth, I said. Using whenever is convenient
2. I have no idea.
by
0 like 0 dislike
I honestly don't understand what plugging
\r
Put the rake task in lib/tasks is a Ruby on Rails way completely. All the same already have RoR.
\r
Moreover there are rumors about the hosts that perform automatic lib/tasks/cron.rake
(http://docs.heroku.com/cron)
by
0 like 0 dislike
1. option
problems to add
\r*/15 * * * * rake thinking_sphinx:index:delta
in cron there. The question is whether to do that on production?
\r
2. option
don't understand what makes rake thinking_sphinx:delayed_delta behind the scenes. What he is doing and how to influence it.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Apr 26, 2019 by andrei2018
0 like 0 dislike
1 answer
asked Apr 14, 2019 by tigroid3
0 like 0 dislike
2 answers
0 like 0 dislike
5 answers
110,608 questions
257,186 answers
0 comments
27,899 users