Switch automatically between advanced and keyword search