Per my test, {searchboxquery} IsDocument:1 AND PATH:{Site.URL}
will include documents in subsite, as shown below:
Please edit the search result web aprt>change query>click Test tab>Show more>enter the file name in search query box to check if the result will be displayed(Note, since I use the duplicate file, remember to change settings to "Don't remove duplicates").
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.