search: generate configuration files once only when rebuilding