ported fill_search_index to lib2; refactored cronjob process synchronization