update config for OAI
make sure session[:search] is defined before we use it