It doesn’t index the file contents. For this we have a Spotlight Plugin on macOS. There is a Spotlight extension on iOS, but it’s only for shoebox apps.