Search Automata