add update_recoll_index function and call it where needed