Create new form, create embed a form, work with  hook (module_name_form_alter) - add new elements, attributes and add submit function. Add autocomplete to search form in SEARCH_BLOCK. Start with AJAX.