You may want to put two textfields, name and location. When name field is filled, search by name. When location field is filled, search by location.
If both are filled, search for a record with that name and location. In this case, it usually returns you only one search result.