Search code examples
phpmysqlsphinx

Sphinx Search Reindex


I have set up Sphinx on a XAMPP server and now I wan't to set it up on a Linux server. How can I obtain this? Also, how can i automatically reindex after a given amount of time? I searched for a tutorial but all I found was explaining how to set up the first index, nothing about reindexing and setting up a cronjob or something similar.


Solution

  • You need to add into your system this command as a scheduler job:

    indexer --all --rotate
    

    In Linux, you can use cron. In Windows - standard scheduler with bat file with this Windows command analog.