Searching for an answer, I looked in a current dictionary. I thought searching was a greund used as a subject but my friend says no

It depends on the use in the sentence. What's the sentence?