Spotlight Query Results

I am working on a project that runs a Spotlight query for a list of file names from a text file. I have a zip file that contains a file name that matches on the list, but the query doesn’t add the zip file to my listbox as a matching hit. I confirmed that when I run the file name through Spotlight on MacOS, it finds the file name within the zip and lists it appropriately. Any idea how to get the same results to appear in my listbox?