What is the best practice to handle a scenario where the search takes long to show the results?

We tried recommending a loader with a percentage, but the development team said the percentage cannot be implemented since they can't determine how long the search would take.

How should the user be informed that the search is still working and not stuck along with an animated icon?