By default, Apple shows your photos in Spotlight Search. To access Spotlight search, swipe from left to right from your Home screen until you go to the Spotlight section. Search for a keyword and matching results from your photos will be shown in the search results. See the screenshots below. How my photos are appearing in search results?

If you don’t want photos to appear in search results, you can disable photos from appearing in Spotlight Search. In this article, I will tell you how you can stop photos from appearing in Spotlight search results on the iPhone.
Stop Photos From appearing in Spotlight Search Results
Open the Settings app and scroll down until you see Photos. Tap on Photos and then tap Siri & Search. Here, look for ‘Show Content in Search‘ and turn it off.

After following the given steps, your photos will not be shown in Spotlight search results.
Wrap Up
Now you know how to stop photos from appearing in Spotlight Search results. This will protect your privacy. Spotlight search is a good thing but you need to know what information should be visible there. I hope you find this article useful. I have also written several articles on iOS and iPhone. Don’t forget to check those articles.