Apple photos is wonderful for this. I can search for “cows” and I get photos of cows. All on device in the middle of a mountain with no internet 50 miles in any direction.
Plus I believe it indexes the text in images too. So if you remember something on a sign that you took a picture of it can find the picture without you having to know where/when it was.