migrated searching to use the new array syntax