search inputmethod optimize