legislators.search does a fuzzy-matching text search of the legislators. The results are legislator names associated with scores ranging from 0 to 1 with 1.0 being an assumed "perfect match." The search algorithm can handle a wide variety of inputs including different orders for the names (last, first or first last), nicknames, minor typos, and more.
Legislators are returned in the same format described for legislators.get and legislators.getList.