Am I reindexing this Sphinx index correctly?

Posted by Ethan on Stack Overflow See other posts from Stack Overflow or by Ethan
Published on 2010-03-24T11:32:16Z Indexed on 2010/03/24 11:33 UTC
Read the original article Hit count: 315

According to the Thinking Sphinx docs...

Turning on delta indexing does not remove the need for regularly running a full re-index ...

So I set up this cron job...

50 10 * * * cd /var/www/my_app/current
  && /opt/ruby/bin/rake thinking_sphinx:index RAILS_ENV=production
    >> /var/www/my_app/current/log/reindexing.log 2>&1

Is that a reasonable way to do it? Should I be doing something different?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about ruby-on-rails