@Vero I created a new user account and the search function worked properly. Last week I used time machine to upgrade from a 2017 MacBook Pro to a m1 MacBook Air. Everything else from the transfer seems to have worked perfectly though and spotlight appears to be completely functional.