AjaxController and search api