Rewrite api search to happen without enter