If the search function in Finder stops working you need to rebuild the Spotlight index Docs here.