Z
Z
zayko2011-01-08 17:33:09
Sphinx
zayko, 2011-01-08 17:33:09

Sphinx, ROR+Thinking Sphinx. Tell me how to get Delta index

Hello!

I want to tie a search to the school site through Thinking Sphinx. The hitch arose at the stage of obtaining the delta. I just can't understand the intricacies of how to get it.

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

Problem in the following:

1. We have a way of receiving of delta through Timestamp. To implement it on the dock, you need to do:

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

I successfully rake. Yes, everything works, but ... now what, you need to rake on the chron?

2. We have a way to get the delta through the delayed_job gem. To implement it on the dock, you need to do:
set_property :delta => :delayed
and then rake:
rake thinking_sphinx:delayed_delta

I successfully rake. But it just hung in the console (and I suspect it started a background indexing process).

Does this mean that delta indexing is running in the background in real time? Then how to find out that it is working and if run in the background how to find out the PID of the process in order to kill it if necessary (stop delta indexing)?

If anyone has experience with implementation, tell me how it works.

Thanks in advance.
The same school computer science teacher Ilya aka Zayko.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
pwlnw, 2011-01-08
@pwlnw

"Rake on the Chron". Are you a teacher in a Russian school?
Maybe, like everyone else, you will run a periodic background merge?

V
vorbiz, 2011-01-08
@vorbiz

Index and delta - exclusively for the crown. Or hands.
Rails Way - whenever.

V
vorbiz, 2011-01-08
@vorbiz

1. Estessna is worth it, I said so. Using whenever is also convenient
2. I have no idea.

G
Georgy Khromchenko, 2011-01-08
@Mox

To be honest, I didn’t understand what the plug was. Putting the
rake task in lib/tasks is the Ruby on Rails way completely. All the same, there is already RoR.
Moreover, there are rumors about hosters who execute lib/tasks/cron.rake automatically
(http://docs.heroku.com/cron)

Z
zayko, 2011-01-08
@zayko

1.
problem variant to add
*/15 * * * * rake thinking_sphinx:index:delta
to cron no. The question is, is it worth it to do this in production?
2. option
I don’t understand what rake thinking_sphinx: delayed_delta does behind the scenes. What does he do there and how to influence it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question