set search action based on config